<?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 Tried DELIMS, REPORT but cannot get neither working in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Tried-DELIMS-REPORT-but-cannot-get-neither-working/m-p/290673#M87831</link>
    <description>&lt;P&gt;sample data :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Number: 152119522
Date : 12/01/2015 12:00:00 AM, Execution Time: 1945
Area Code: 21
Area Name: reading
Road: 7789
Code: 230
Description: Backup Failed
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I have successfully - managed to extract required fields individually but trying to do it another way using the colon as a delimiter but i cannot get it working - config files :&lt;/P&gt;

&lt;P&gt;props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[sourcetype]
TRANSFORMS-colons = colons
transforms.conf
 [colons]
 REGEX = (?&amp;lt;_KEY_1&amp;gt;\w+):\s+(?&amp;lt;_VAL_1&amp;gt;\S+) 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;where am i going wrong - cheers.&lt;/P&gt;</description>
    <pubDate>Wed, 08 Feb 2017 13:37:10 GMT</pubDate>
    <dc:creator>Esky73</dc:creator>
    <dc:date>2017-02-08T13:37:10Z</dc:date>
    <item>
      <title>Tried DELIMS, REPORT but cannot get neither working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Tried-DELIMS-REPORT-but-cannot-get-neither-working/m-p/290673#M87831</link>
      <description>&lt;P&gt;sample data :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Number: 152119522
Date : 12/01/2015 12:00:00 AM, Execution Time: 1945
Area Code: 21
Area Name: reading
Road: 7789
Code: 230
Description: Backup Failed
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I have successfully - managed to extract required fields individually but trying to do it another way using the colon as a delimiter but i cannot get it working - config files :&lt;/P&gt;

&lt;P&gt;props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[sourcetype]
TRANSFORMS-colons = colons
transforms.conf
 [colons]
 REGEX = (?&amp;lt;_KEY_1&amp;gt;\w+):\s+(?&amp;lt;_VAL_1&amp;gt;\S+) 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;where am i going wrong - cheers.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2017 13:37:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Tried-DELIMS-REPORT-but-cannot-get-neither-working/m-p/290673#M87831</guid>
      <dc:creator>Esky73</dc:creator>
      <dc:date>2017-02-08T13:37:10Z</dc:date>
    </item>
    <item>
      <title>Re: Tried DELIMS, REPORT but cannot get neither working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Tried-DELIMS-REPORT-but-cannot-get-neither-working/m-p/290674#M87832</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;

&lt;P&gt;This should be possible. I have a go with your data using this in &lt;CODE&gt;props.conf&lt;/CODE&gt;:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[test-ext]
TRUNCATE = 0
SHOULD_LINEMERGE = false
LINE_BREAKER = (NULL)
DATETIME_CONFIG = CURRENT
MAX_EVENTS = 100000
REPORT-test-ext = sourcetype-test-ext
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You'd need to change the &lt;CODE&gt;TRUNCATE&lt;/CODE&gt;, &lt;CODE&gt;MAX_EVENTS&lt;/CODE&gt; and &lt;CODE&gt;LINE_BREAKER&lt;/CODE&gt; to whatever works best for you. This was just for a quick test.&lt;/P&gt;

&lt;P&gt;Also, if you want to use the Date from your data as the Index time, then take a look at the &lt;CODE&gt;TIME_PREFIX&lt;/CODE&gt; and &lt;CODE&gt;TIME_FORMAT&lt;/CODE&gt; options.&lt;/P&gt;

&lt;P&gt;Then in &lt;CODE&gt;transforms.conf&lt;/CODE&gt;:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[sourcetype-test-ext]
REGEX = ([^:]+):\s([^\r\n,]+)
FORMAT = $1::$2
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Which gives me this in Splunk:&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/2462iC50DC103786C431F/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Hopefully that gets you closer to what you're looking for.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2017 06:26:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Tried-DELIMS-REPORT-but-cannot-get-neither-working/m-p/290674#M87832</guid>
      <dc:creator>gvmorley</dc:creator>
      <dc:date>2017-02-10T06:26:12Z</dc:date>
    </item>
    <item>
      <title>Re: Tried DELIMS, REPORT but cannot get neither working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Tried-DELIMS-REPORT-but-cannot-get-neither-working/m-p/290675#M87833</link>
      <description>&lt;P&gt;thanks for your help&lt;/P&gt;</description>
      <pubDate>Wed, 08 Mar 2017 05:06:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Tried-DELIMS-REPORT-but-cannot-get-neither-working/m-p/290675#M87833</guid>
      <dc:creator>Esky73</dc:creator>
      <dc:date>2017-03-08T05:06:27Z</dc:date>
    </item>
  </channel>
</rss>

