- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Ingesting XML Telemetry in Metron
- Labels:
-
Apache Metron
Created ‎03-08-2017 11:45 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I was wondering about the best way to ingest logs in XML format into Metron. Parsing with Grok doesn't seem to be the way to go in this case. Remaining options seem to be to 1) either utilize NiFi to turn the XML into a format that Metron expects, 2) or develop a java parser for parsing XML, (that is Metron-288 issue which is not of high priority: https://issues.apache.org/jira/browse/METRON-288 ).
Are these two options the only possibilities?
Created ‎03-31-2017 12:59 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Metron supports 3 types of parsers: Grok, CSV and Java. For XML data Java is the best choice.
You can see example parsers in the Metron github:
You could also use Nifi to convert the XML to JSON and enqueue the events to the enrichment topic. Here are some articles about parsing XML logs with Nifi:
https://community.hortonworks.com/articles/25720/parsing-xml-logs-with-nifi-part-1-of-3.html
Created ‎03-31-2017 12:59 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Metron supports 3 types of parsers: Grok, CSV and Java. For XML data Java is the best choice.
You can see example parsers in the Metron github:
You could also use Nifi to convert the XML to JSON and enqueue the events to the enrichment topic. Here are some articles about parsing XML logs with Nifi:
https://community.hortonworks.com/articles/25720/parsing-xml-logs-with-nifi-part-1-of-3.html
