<?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: XML column header and delimited events in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/XML-column-header-and-delimited-events/m-p/103451#M5855</link>
    <description>&lt;P&gt;You could use transforms.conf and nullQueue the lines that start with &lt;CODE&gt;&amp;lt;&lt;/CODE&gt;. This will save space within your license, as well as remove all XML tags. Set your linebreaking back to default, and they should just index as individual lines.&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;props.conf&lt;BR /&gt;
[netflow]&lt;BR /&gt;
TRANSFORMS-null = nullQueueNetFlow&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;transforms.conf&lt;BR /&gt;
[nullQueueNetFlow]&lt;BR /&gt;
REGEX = (?m)^\s*&amp;lt;&lt;BR /&gt;
DEST_KEY = queue&lt;BR /&gt;
FORMAT = nullQueue&lt;BR /&gt;
&lt;/CODE&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 17 Oct 2013 11:53:04 GMT</pubDate>
    <dc:creator>alacercogitatus</dc:creator>
    <dc:date>2013-10-17T11:53:04Z</dc:date>
    <item>
      <title>XML column header and delimited events</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/XML-column-header-and-delimited-events/m-p/103450#M5854</link>
      <description>&lt;P&gt;Folks,&lt;/P&gt;

&lt;P&gt;I have some NetFlow logs that go something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;?xml version="1.0"?&amp;gt;
&amp;lt;flowrecord&amp;gt;
   &amp;lt;delimiter&amp;gt;|&amp;lt;/delimiter&amp;gt;
   &amp;lt;key name="srcaddr" type="ipaddress"/&amp;gt;
   &amp;lt;key name="destaddr" type="ipaddress"/&amp;gt;
   &amp;lt;value name="inBytes" type="integer" usage="count"/&amp;gt;
   &amp;lt;value name="outBytes" type="integer" usage="count"/&amp;gt;
&amp;lt;/flowrecord&amp;gt;
1.2.3.4|2.3.4.5|100|34
2.3.4.5|4.5.6.7|20|12
8.9.1.1|4.3.2.1|123|1034
&amp;lt;/xml&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;We have a few things going on here. A multi-line header we want &lt;CODE&gt;SHOULD_LINEMERGE=true&lt;/CODE&gt; and for the actual events, we want &lt;CODE&gt;SHOULD_LINEMERGE=false&lt;/CODE&gt;.&lt;/P&gt;

&lt;P&gt;These are all sourcetype'd as netflow and i've had several unsuccessful attempts at getting Splunk to process these the way i'd like.&lt;/P&gt;

&lt;P&gt;What's the best way to configure Splunk to have the XML as a single multi-line event, and the events broken up?&lt;/P&gt;

&lt;P&gt;I'd obviously like to process the actual events which is fairly easy with DELIMS/FIELDS in props.conf/transforms.conf but dealing with this XML header has thrown a curve-ball into what should be fairly easy.&lt;/P&gt;

&lt;P&gt;Would appreciate any thoughts..&lt;/P&gt;

&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2013 10:16:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/XML-column-header-and-delimited-events/m-p/103450#M5854</guid>
      <dc:creator>Splunker</dc:creator>
      <dc:date>2013-10-17T10:16:59Z</dc:date>
    </item>
    <item>
      <title>Re: XML column header and delimited events</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/XML-column-header-and-delimited-events/m-p/103451#M5855</link>
      <description>&lt;P&gt;You could use transforms.conf and nullQueue the lines that start with &lt;CODE&gt;&amp;lt;&lt;/CODE&gt;. This will save space within your license, as well as remove all XML tags. Set your linebreaking back to default, and they should just index as individual lines.&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;props.conf&lt;BR /&gt;
[netflow]&lt;BR /&gt;
TRANSFORMS-null = nullQueueNetFlow&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;transforms.conf&lt;BR /&gt;
[nullQueueNetFlow]&lt;BR /&gt;
REGEX = (?m)^\s*&amp;lt;&lt;BR /&gt;
DEST_KEY = queue&lt;BR /&gt;
FORMAT = nullQueue&lt;BR /&gt;
&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2013 11:53:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/XML-column-header-and-delimited-events/m-p/103451#M5855</guid>
      <dc:creator>alacercogitatus</dc:creator>
      <dc:date>2013-10-17T11:53:04Z</dc:date>
    </item>
  </channel>
</rss>

