<?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: Can you help me with search time field extraction using props.conf &amp; transforms.conf? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Can-you-help-me-with-search-time-field-extraction-using-props/m-p/415454#M73463</link>
    <description>&lt;P&gt;Can you please clarify "acknowledged", are you able to see &lt;CODE&gt;test-fix-logs2&lt;/CODE&gt; sourcetype in splunk while running the splunk query ? &lt;/P&gt;

&lt;P&gt;Additionally above props.conf and transforms.conf should be on Indexer or Heavy Forwarder whichever comes first from Universal Forwarder and then you need to restart splunk to take effect of those new configurations.&lt;/P&gt;</description>
    <pubDate>Tue, 16 Oct 2018 07:57:12 GMT</pubDate>
    <dc:creator>harsmarvania57</dc:creator>
    <dc:date>2018-10-16T07:57:12Z</dc:date>
    <item>
      <title>Can you help me with search time field extraction using props.conf &amp; transforms.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-you-help-me-with-search-time-field-extraction-using-props/m-p/415451#M73460</link>
      <description>&lt;P&gt;Hi splunk gurus,&lt;/P&gt;

&lt;P&gt;I am new to Splunk and having some difficulty with a search time field extraction.&lt;/P&gt;

&lt;P&gt;This is a sample log I would like to parse. (FIX log)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;20181009-14:55:41.450 : 8=FIX.4.2&amp;#1;9=64&amp;#1;35=0&amp;#1;34=2958&amp;#1;49=BLAH42&amp;#1;52=20181009-14:55:41.445&amp;#1;56=BLAH42&amp;#1;10=115&amp;#1;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;Inputs.conf&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[default]
host = ..servername..
index = ..blah.. 

[monitor://D:\test\FIX\fix2.log]
sourcetype = test-fix-logs2
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;transforms.conf&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[test1]
REGEX = 8=(?P&amp;lt;tag_8&amp;gt;[^,]*?)\cA
FORMAT = tag_8::$1

[test2]
REGEX = \cA9=(?P&amp;lt;tag_9&amp;gt;[^,]*?)\cA
FORMAT = tag_9::$1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;props.conf&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[test-fix-logs2]
REPORT-class1 = test1
REPORT-class2 = test2
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I have spent a few hours, but I couldn't find what could be potentially wrong as I don't see those two fields ('tag_8' &amp;amp; 'tag_9') in the search result in Splunk Web.&lt;/P&gt;

&lt;P&gt;Can anyone please advise?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 21:33:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-you-help-me-with-search-time-field-extraction-using-props/m-p/415451#M73460</guid>
      <dc:creator>conan311</dc:creator>
      <dc:date>2020-09-29T21:33:06Z</dc:date>
    </item>
    <item>
      <title>Re: Can you help me with search time field extraction using props.conf &amp; transforms.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-you-help-me-with-search-time-field-extraction-using-props/m-p/415452#M73461</link>
      <description>&lt;P&gt;Hi @conan311,&lt;/P&gt;

&lt;P&gt;You can achieve this extraction on search head with 2 different methods.&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;Only with props.conf&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;You can do below configuration only in props.conf and both fields will be extracted based on your regex.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[test-fix-logs2]
EXTRACT-testing = 8=(?P&amp;lt;tag_8&amp;gt;[^,]*?)\cA9=(?P&amp;lt;tag_9&amp;gt;[^,]*?)\cA
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;UL&gt;
&lt;LI&gt;Combination of props.conf and transforms.conf &lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[test-fix-logs2]
REPORT-testing = test1,test2
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;transforms.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[test1]
CLEAN_KEYS = 0
REGEX = 8=(?P&amp;lt;tag_8&amp;gt;[^,]*?)\cA

[test2]
CLEAN_KEYS = 0
REGEX = \cA9=(?P&amp;lt;tag_9&amp;gt;[^,]*?)\cA
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 12 Oct 2018 08:16:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-you-help-me-with-search-time-field-extraction-using-props/m-p/415452#M73461</guid>
      <dc:creator>harsmarvania57</dc:creator>
      <dc:date>2018-10-12T08:16:24Z</dc:date>
    </item>
    <item>
      <title>Re: Can you help me with search time field extraction using props.conf &amp; transforms.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-you-help-me-with-search-time-field-extraction-using-props/m-p/415453#M73462</link>
      <description>&lt;P&gt;@harsmarvania57 , thanks for your answer. It doesn't look like my sourcetype defined in inputs.confg  ("test-fix-logs2") gets acknowledged. Can you see what could be wrong?&lt;/P&gt;</description>
      <pubDate>Mon, 15 Oct 2018 23:47:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-you-help-me-with-search-time-field-extraction-using-props/m-p/415453#M73462</guid>
      <dc:creator>conan311</dc:creator>
      <dc:date>2018-10-15T23:47:37Z</dc:date>
    </item>
    <item>
      <title>Re: Can you help me with search time field extraction using props.conf &amp; transforms.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-you-help-me-with-search-time-field-extraction-using-props/m-p/415454#M73463</link>
      <description>&lt;P&gt;Can you please clarify "acknowledged", are you able to see &lt;CODE&gt;test-fix-logs2&lt;/CODE&gt; sourcetype in splunk while running the splunk query ? &lt;/P&gt;

&lt;P&gt;Additionally above props.conf and transforms.conf should be on Indexer or Heavy Forwarder whichever comes first from Universal Forwarder and then you need to restart splunk to take effect of those new configurations.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Oct 2018 07:57:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-you-help-me-with-search-time-field-extraction-using-props/m-p/415454#M73463</guid>
      <dc:creator>harsmarvania57</dc:creator>
      <dc:date>2018-10-16T07:57:12Z</dc:date>
    </item>
  </channel>
</rss>

