<?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: Index time Search Not Working in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Index-time-Search-Not-Working/m-p/449182#M171458</link>
    <description>&lt;P&gt;@koshyk Thank you .....it worked &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 09 May 2019 05:24:51 GMT</pubDate>
    <dc:creator>NAVEEN_CTS</dc:creator>
    <dc:date>2019-05-09T05:24:51Z</dc:date>
    <item>
      <title>Index time Search Not Working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Index-time-Search-Not-Working/m-p/449178#M171454</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;

&lt;P&gt;I have dns file where i need to filter the junk data before indexing and extract hostname and IP fields at index time.&lt;/P&gt;

&lt;P&gt;Filtering logic works well&lt;BR /&gt;
Regex works well. It is tested in splunk search.&lt;BR /&gt;
I get only 1 field extracted (IP alone) and HostName is not extracted.&lt;/P&gt;

&lt;P&gt;Below are my configurations.Please review and let me know if something missing&lt;/P&gt;

&lt;P&gt;Props.conf&lt;BR /&gt;
[dig]&lt;BR /&gt;
TRANSFORMS-drop = delLines&lt;BR /&gt;
TRANSFORMS-dnsExtract = hostExtraction&lt;BR /&gt;
TRANSFORMS-dnsExtract = IPExtraction&lt;/P&gt;

&lt;P&gt;Transforms.conf&lt;/P&gt;

&lt;P&gt;[delLines]&lt;BR /&gt;
REGEX =  ^;.*$&lt;BR /&gt;
DEST_KEY = queue&lt;BR /&gt;
FORMAT = nullQueue&lt;/P&gt;

&lt;P&gt;[hostExtraction]&lt;BR /&gt;
REGEX = ^(?P[^\t]+)&lt;/P&gt;

&lt;P&gt;FORMAT = HostName::"$1"&lt;/P&gt;

&lt;P&gt;WRITE_META = true&lt;/P&gt;

&lt;P&gt;[IPExtraction]&lt;BR /&gt;
REGEX = (?\d{1,3}.\d{1,3}.\d{1,3}.\d{1,3})&lt;/P&gt;

&lt;P&gt;FORMAT = IP::"$1"&lt;/P&gt;

&lt;P&gt;WRITE_META = true&lt;/P&gt;</description>
      <pubDate>Wed, 08 May 2019 14:10:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Index-time-Search-Not-Working/m-p/449178#M171454</guid>
      <dc:creator>NAVEEN_CTS</dc:creator>
      <dc:date>2019-05-08T14:10:39Z</dc:date>
    </item>
    <item>
      <title>Re: Index time Search Not Working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Index-time-Search-Not-Working/m-p/449179#M171455</link>
      <description>&lt;P&gt;I missed adding fields.conf&lt;/P&gt;

&lt;P&gt;Fields.conf&lt;BR /&gt;
[HostName]&lt;BR /&gt;
INDEXED = true&lt;/P&gt;

&lt;P&gt;[IP]&lt;BR /&gt;
INDEXED = true&lt;/P&gt;</description>
      <pubDate>Wed, 08 May 2019 14:12:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Index-time-Search-Not-Working/m-p/449179#M171455</guid>
      <dc:creator>NAVEEN_CTS</dc:creator>
      <dc:date>2019-05-08T14:12:40Z</dc:date>
    </item>
    <item>
      <title>Re: Index time Search Not Working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Index-time-Search-Not-Working/m-p/449180#M171456</link>
      <description>&lt;P&gt;The reason i guess is you made a small mistake of using same name within props.conf . Please try like below &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[dig]
TRANSFORMS-drop = delLines
TRANSFORMS-dnsExtract1 = hostExtraction
TRANSFORMS-dnsExtract2 = IPExtraction
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 08 May 2019 18:51:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Index-time-Search-Not-Working/m-p/449180#M171456</guid>
      <dc:creator>koshyk</dc:creator>
      <dc:date>2019-05-08T18:51:30Z</dc:date>
    </item>
    <item>
      <title>Re: Index time Search Not Working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Index-time-Search-Not-Working/m-p/449181#M171457</link>
      <description>&lt;P&gt;I agree with @koshyk but I would probably fix it like this:&lt;/P&gt;

&lt;P&gt;Props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[dig]
TRANSFORMS-drop = delLines
TRANSFORMS-dnsExtract = hostExtraction, IPExtraction
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 08 May 2019 20:07:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Index-time-Search-Not-Working/m-p/449181#M171457</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-05-08T20:07:12Z</dc:date>
    </item>
    <item>
      <title>Re: Index time Search Not Working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Index-time-Search-Not-Working/m-p/449182#M171458</link>
      <description>&lt;P&gt;@koshyk Thank you .....it worked &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 May 2019 05:24:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Index-time-Search-Not-Working/m-p/449182#M171458</guid>
      <dc:creator>NAVEEN_CTS</dc:creator>
      <dc:date>2019-05-09T05:24:51Z</dc:date>
    </item>
    <item>
      <title>Re: Index time Search Not Working</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Index-time-Search-Not-Working/m-p/449183#M171459</link>
      <description>&lt;P&gt;@woodcock  Thank you it worked &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 May 2019 05:25:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Index-time-Search-Not-Working/m-p/449183#M171459</guid>
      <dc:creator>NAVEEN_CTS</dc:creator>
      <dc:date>2019-05-09T05:25:40Z</dc:date>
    </item>
  </channel>
</rss>

