Graylog2 / graylog2-server

Free and open log management
https://www.graylog.org
Other
7.37k stars 1.06k forks source link

Index and Analyze xml #4191

Open gmarano opened 7 years ago

gmarano commented 7 years ago

i’ve to index an xml file with graylog, i’ve already added xml to graylog and i’ve already created a stream and a pipeline with extractor. My problem is that doesn’t exists a plugin for making a xpath query for extraction of attributes or childs and for adding the informations to index. I wish thre is a method for indexing data from xml like flatten fields and make analysis and query on indexed data

Expected Behavior

Indexing xml contets like fields or attributes

Current Behavior

Now we'll can create an extractor that, from a syslog event with an xml content, for the insertion of xml into indexed filed. This can't give us the chance of searching for xml content elements or attributes value.

Possible Solution

I'll suggest a new function for extract fields or attribute from an xml and for creating of new files into messages. This functionality, inserted into a pipeline, will be able to create easly a query into extracted filed

tehpanta commented 6 years ago

Id very much like this as well! 👍