Basic-parsing XML into logsash

(Usha Datt) #1

I want to parse my XML document through logstash so that each document gets parsed differently..How to achieve this? For example: book id 101 becomes one document with parsed fields and book102 becomes another document with parsed fields?

<?xml version="1.0"?>
   <book id="bk101">
      <author>Gambardella, Matthew</author>
      <title>XML Developer's Guide</title>
      <description>An in-depth look at creating applications 
      with XML.</description>
   <book id="bk102">
      <author>Ralls, Kim</author>
      <title>Midnight Rain</title>
      <description>A former architect battles corporate zombies, 
      an evil sorceress, and her own childhood to become queen 
      of the world.</description>

(Mark Walkom) #2

Have you looked at the XML filter documentation?

(Usha Datt) #3

Yeah. But I am new to logstash so needed a basic example to work on.. if you could suggest a basic example or some will be a great help :smile:

(Mark Walkom) #4


(system) #5