<?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 Indexing xml log file input in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Indexing-xml-log-file-input/m-p/54296#M10488</link>
    <description>&lt;P&gt;I have a log file wherea typical line entry is as below ... I am trying to construct REGEX to be included in the "transforms.conf" file on indexer to break the line into fields such as "NS" , "subproduct", "command" , "result" ,"time" I.E by XML tags .Any help is appreciated &lt;/P&gt;

&lt;P&gt;20110803 000000| &lt;RTTLOG&gt;&lt;ID&gt;427&lt;/ID&gt;&lt;NS&gt;urn:ietf:params:xml:ns:domain-1.0&lt;/NS&gt;&lt;SUBPRODUCT&gt;dotTV&lt;/SUBPRODUCT&gt;&lt;COMMAND&gt;check&lt;/COMMAND&gt;&lt;RESULT&gt;1000&lt;/RESULT&gt;&lt;TIME&gt;7&lt;/TIME&gt;&lt;/RTTLOG&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 05 Aug 2011 15:49:16 GMT</pubDate>
    <dc:creator>desi-indian</dc:creator>
    <dc:date>2011-08-05T15:49:16Z</dc:date>
    <item>
      <title>Indexing xml log file input</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Indexing-xml-log-file-input/m-p/54296#M10488</link>
      <description>&lt;P&gt;I have a log file wherea typical line entry is as below ... I am trying to construct REGEX to be included in the "transforms.conf" file on indexer to break the line into fields such as "NS" , "subproduct", "command" , "result" ,"time" I.E by XML tags .Any help is appreciated &lt;/P&gt;

&lt;P&gt;20110803 000000| &lt;RTTLOG&gt;&lt;ID&gt;427&lt;/ID&gt;&lt;NS&gt;urn:ietf:params:xml:ns:domain-1.0&lt;/NS&gt;&lt;SUBPRODUCT&gt;dotTV&lt;/SUBPRODUCT&gt;&lt;COMMAND&gt;check&lt;/COMMAND&gt;&lt;RESULT&gt;1000&lt;/RESULT&gt;&lt;TIME&gt;7&lt;/TIME&gt;&lt;/RTTLOG&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Aug 2011 15:49:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Indexing-xml-log-file-input/m-p/54296#M10488</guid>
      <dc:creator>desi-indian</dc:creator>
      <dc:date>2011-08-05T15:49:16Z</dc:date>
    </item>
    <item>
      <title>Re: Indexing xml log file input</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Indexing-xml-log-file-input/m-p/54297#M10489</link>
      <description>&lt;P&gt;This should work:&lt;/P&gt;

&lt;P&gt;transforms.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[simple-xml-tags]
REGEX = &amp;lt;(\w+)&amp;gt;([^&amp;lt;]+)&amp;lt;/
FORMAT = $1::$2
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[my_sourcetype]
REPORT-xml-tags = simple-xml-tags
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 05 Aug 2011 15:58:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Indexing-xml-log-file-input/m-p/54297#M10489</guid>
      <dc:creator>ziegfried</dc:creator>
      <dc:date>2011-08-05T15:58:13Z</dc:date>
    </item>
    <item>
      <title>Re: Indexing xml log file input</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Indexing-xml-log-file-input/m-p/54298#M10490</link>
      <description>&lt;P&gt;I tried this and still not able to get the data extracted ..Here are mt props.conf and transforms.conf entries&lt;/P&gt;

&lt;P&gt;Props.conf&lt;/P&gt;

&lt;P&gt;[source::...tcpig.\d+.\sla.\$]&lt;/P&gt;

&lt;P&gt;sourcetype = ig_sla&lt;/P&gt;

&lt;P&gt;[ig_sla]&lt;/P&gt;

&lt;P&gt;TIME_FORMAT = %Y%m%d %H%M%S&lt;/P&gt;

&lt;P&gt;TZ = US/Eastern&lt;/P&gt;

&lt;P&gt;MAX_EVENTS=1&lt;/P&gt;

&lt;P&gt;SHOULD_LINEMERGE = false&lt;/P&gt;

&lt;P&gt;LINE_BREAKER = &amp;gt;\s*(?=&amp;lt;rttlog&amp;gt;)&lt;/P&gt;

&lt;P&gt;REPORT-xmlext = xml-extr&lt;/P&gt;

&lt;P&gt;transforms.conf&lt;/P&gt;

&lt;P&gt;[xml-extr]&lt;/P&gt;

&lt;P&gt;REGEX = &amp;lt;(\w+)&amp;gt;([^&amp;lt;]+)&amp;lt;/&lt;/P&gt;

&lt;P&gt;FORMAT = reg_id::"$1" NS::"$2" sub_product::"$3" command::"$4" response_code::"$5"&lt;BR /&gt;
 response_time::"$6"&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 09:47:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Indexing-xml-log-file-input/m-p/54298#M10490</guid>
      <dc:creator>desi-indian</dc:creator>
      <dc:date>2020-09-28T09:47:03Z</dc:date>
    </item>
    <item>
      <title>Re: Indexing xml log file input</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Indexing-xml-log-file-input/m-p/54299#M10491</link>
      <description>&lt;P&gt;Can you make sure that the sourcetype is actually applied to those events? There is a bug on splunkbase, that doubles the backslashes . There should only be one in the REGEX stanza...&lt;/P&gt;</description>
      <pubDate>Mon, 08 Aug 2011 12:08:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Indexing-xml-log-file-input/m-p/54299#M10491</guid>
      <dc:creator>ziegfried</dc:creator>
      <dc:date>2011-08-08T12:08:30Z</dc:date>
    </item>
    <item>
      <title>Re: Indexing xml log file input</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Indexing-xml-log-file-input/m-p/54300#M10492</link>
      <description>&lt;P&gt;REGEX = &amp;lt;(\w+)&amp;gt;([^&amp;lt;]+)&amp;lt;/&lt;/P&gt;</description>
      <pubDate>Mon, 08 Aug 2011 12:08:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Indexing-xml-log-file-input/m-p/54300#M10492</guid>
      <dc:creator>ziegfried</dc:creator>
      <dc:date>2011-08-08T12:08:49Z</dc:date>
    </item>
  </channel>
</rss>

