Parsing XML log file with logstash

Hey,

Sorry I havent been clear, i'll try explaining myself better. Yes they are multiple kw elements and I would like to store each kw as a separate event.

My XML file has 3000 lines so I can't copy paste it all here.
Here is a snapshot:

<?xml version="1.0" encoding="UTF-8"?>
<robot generated="20190204 14:20:19.932" generator="Robot 3.0.3.dev20170213 (Python 2.7.15 on win32)">
    <suite source="C:\BAT-Copy\bat-electron\out-tsc\main\main\resources\robotframework\acceptance\Test_Case_1.txt" id="s1" name="Test Case 1">
        <test id="s1-t1" name="Default">
            <kw name="Register Keyword To Run On Failure" library="SeleniumLibrary">
                <doc>Sets the keyword to execute when a SeleniumLibrary keyword fails.</doc>
                <arguments>
                    <arg>Nothing</arg>
                </arguments>
                <msg timestamp="20190204 14:20:40.248" level="INFO">No keyword will be run on failure.</msg>
                <status status="PASS" endtime="20190204 14:20:40.248" starttime="20190204 14:20:40.248"></status>
            </kw>

And I would like to store each kw as an event with the corresponding json format, so:

{
   "_index":"myindex",
   "kw":{
      "doc":"Sets the keyword to execute when a Selenium...",
      "arguments":{
         "arg":"Nothing"
      },
      "msg":"No Keyword will..",
      "status":""
   }
}

, etc.

Each <kw></kw> should be one document.

Thanks in advance,