<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Creating multiple events from single XML file in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Creating-multiple-events-from-single-XML-file/m-p/196686#M39127</link>
    <description>&lt;P&gt;events are the same. I tried BREAK_ONLY_BEFORE=&amp;lt;machine&amp;gt; as well since the xml format is jumbled in notepad. example &lt;MACHINE&gt; &lt;MACHINE_NAME&gt;SQLEV&lt;/MACHINE_NAME&gt;&lt;INFO&gt; is all one line.&lt;/INFO&gt;&lt;/MACHINE&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 16:50:09 GMT</pubDate>
    <dc:creator>jeffflynn</dc:creator>
    <dc:date>2020-09-28T16:50:09Z</dc:date>
    <item>
      <title>Creating multiple events from single XML file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Creating-multiple-events-from-single-XML-file/m-p/196684#M39125</link>
      <description>&lt;P&gt;I am trying to create an event based on the xml data below.  It repeats in the xml file multiple times. The Event starts at &lt;MACHINE&gt; and ends with &lt;/MACHINE&gt;.  Start time &lt;START_TIME&gt; and endtime is &lt;END_TIME&gt;. I haven't been able to get the props.conf file to break down the xml to create the events around this.   Since the event has multiple time stamps in it, it is creating an event per time stamp.  What am I doing wrong? and is there a way to remove the unnecessary data like between &lt;DIRECTORY&gt; and &lt;/DIRECTORY&gt;.&lt;/END_TIME&gt;&lt;/START_TIME&gt;&lt;/P&gt;

&lt;P&gt;props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[log_xml]
BREAK_ONLY_BEFORE=&amp;lt;machine&amp;gt;
BREAK_ONLY_BEFORE_DATE=False
TIME_PREFIX=&amp;lt;start_time&amp;gt;
MAX_TIMESTAMP_LOOKAHEAD=20
SHOULD_LINEMERGE=True
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;XML FILE&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;   &amp;lt;machine&amp;gt;
      &amp;lt;machine_name&amp;gt;machine.splunk.net&amp;lt;/machine_name&amp;gt; 
      &amp;lt;info&amp;gt;-- The Enterprise Vault entities on machine.splunk.net have been placed in backup mode. --&amp;lt;/info&amp;gt; 
      &amp;lt;info&amp;gt;Network control connection is established between IP:port &amp;lt;--&amp;gt; IP:port&amp;lt;/info&amp;gt; 
      &amp;lt;info&amp;gt;Network data connection is established between IP:Port &amp;lt;--&amp;gt; IP:port&amp;lt;/info&amp;gt; 
      &amp;lt;set&amp;gt;
      &amp;lt;set_resource_name&amp;gt;whatever resource&amp;lt;/set_resource_name&amp;gt; 
      &amp;lt;tape_name&amp;gt;Family Name: "Media created 6/9/2014 6:00:03 PM"&amp;lt;/tape_name&amp;gt; 
    - &amp;lt;volume&amp;gt;
      &amp;lt;display_volume&amp;gt;Backup of "Machine name"&amp;lt;/display_volume&amp;gt; 
      &amp;lt;/volume&amp;gt;
      &amp;lt;description&amp;gt;Backup set #4 on storage media #1 Backup set description: "prd-vault-diff"&amp;lt;/description&amp;gt; 
      &amp;lt;backup_type&amp;gt;Backup Method: Differential&amp;lt;/backup_type&amp;gt; 
      &amp;lt;start_time&amp;gt;Backup started on 6/9/2014 at 11:01:37 PM.&amp;lt;/start_time&amp;gt; 
    - &amp;lt;directory&amp;gt;
      &amp;lt;directory_name&amp;gt;Directory \&amp;lt;/directory_name&amp;gt; 
    - &amp;lt;directory&amp;gt;
    - &amp;lt;directory&amp;gt;
      &amp;lt;directory_name&amp;gt;Directory \EVVaultStores&amp;lt;/directory_name&amp;gt; 
      &amp;lt;/directory&amp;gt;
    - &amp;lt;directory&amp;gt;
      &amp;lt;directory_name&amp;gt;Directory \EVVaultStores\VSFSA Ptn1&amp;lt;/directory_name&amp;gt; 
      &amp;lt;file&amp;gt;PartitionSecuredNotification.xml&amp;lt;/file&amp;gt; 
      &amp;lt;/directory&amp;gt;
      &amp;lt;/directory&amp;gt;
      &amp;lt;/directory&amp;gt;
      &amp;lt;end_time&amp;gt;Backup completed on 6/9/2014 at 11:01:38 PM.&amp;lt;/end_time&amp;gt; 
    - &amp;lt;summary&amp;gt;
      &amp;lt;misc&amp;gt;Backed up 1 file in 3 directories.&amp;lt;/misc&amp;gt; 
      &amp;lt;new_processed_bytes&amp;gt;Processed 1,161 bytes in 1 second.&amp;lt;/new_processed_bytes&amp;gt; 
      &amp;lt;vlm_hist_rateformat2&amp;gt;Throughput rate: 0.066 MB/min&amp;lt;/vlm_hist_rateformat2&amp;gt; 
      &amp;lt;/summary&amp;gt;
      &amp;lt;filler&amp;gt;----------------------------------------------------------------------&amp;lt;/filler&amp;gt; 
      &amp;lt;/set&amp;gt;
      &amp;lt;info&amp;gt;-- The Enterprise Vault entities on machine.splunk.net have been taken out of backup mode. --&amp;lt;/info&amp;gt; 
      &amp;lt;filler&amp;gt;----------------------------------------------------------------------&amp;lt;/filler&amp;gt; 
      &amp;lt;/machine&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 11 Jun 2014 20:31:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Creating-multiple-events-from-single-XML-file/m-p/196684#M39125</guid>
      <dc:creator>jeffflynn</dc:creator>
      <dc:date>2014-06-11T20:31:56Z</dc:date>
    </item>
    <item>
      <title>Re: Creating multiple events from single XML file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Creating-multiple-events-from-single-XML-file/m-p/196685#M39126</link>
      <description>&lt;P&gt;Try with this&lt;/P&gt;

&lt;P&gt;props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[log_xml]
BREAK_ONLY_BEFORE=^\&amp;lt;machine\&amp;gt;
NO_BINARY_CHECK=1
SHOULD_LINEMERGE=true
TIME_PREFIX=\&amp;lt;start_time\&amp;gt;Backup started on\s
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 11 Jun 2014 21:18:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Creating-multiple-events-from-single-XML-file/m-p/196685#M39126</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-06-11T21:18:32Z</dc:date>
    </item>
    <item>
      <title>Re: Creating multiple events from single XML file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Creating-multiple-events-from-single-XML-file/m-p/196686#M39127</link>
      <description>&lt;P&gt;events are the same. I tried BREAK_ONLY_BEFORE=&amp;lt;machine&amp;gt; as well since the xml format is jumbled in notepad. example &lt;MACHINE&gt; &lt;MACHINE_NAME&gt;SQLEV&lt;/MACHINE_NAME&gt;&lt;INFO&gt; is all one line.&lt;/INFO&gt;&lt;/MACHINE&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 16:50:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Creating-multiple-events-from-single-XML-file/m-p/196686#M39127</guid>
      <dc:creator>jeffflynn</dc:creator>
      <dc:date>2020-09-28T16:50:09Z</dc:date>
    </item>
  </channel>
</rss>

