<?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: props.conf field extraction in Knowledge Management</title>
    <link>https://community.splunk.com/t5/Knowledge-Management/props-conf-field-extraction/m-p/286226#M8018</link>
    <description>&lt;P&gt;...i do not want to waste more time for this, does it make a differnece to use the rex in search query or to define in props and transforms conf?? because it work´s in search query&lt;/P&gt;</description>
    <pubDate>Fri, 29 Jul 2016 06:19:22 GMT</pubDate>
    <dc:creator>nikkkc</dc:creator>
    <dc:date>2016-07-29T06:19:22Z</dc:date>
    <item>
      <title>props.conf field extraction</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/props-conf-field-extraction/m-p/286218#M8010</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;
i try to extract a field in props.conf on search head/indexer. Data comes from UF.&lt;/P&gt;

&lt;P&gt;props.conf&lt;BR /&gt;
[mysyslog]&lt;BR /&gt;
EXTRACT-level = "var/log/remote/smg/mail\d+/\w+/(?[^/]*)/" in source&lt;/P&gt;

&lt;P&gt;source: /var/log/remote/smg/mail01/mail/info/xxxxx.log&lt;/P&gt;

&lt;P&gt;the regex work´s in search:&lt;BR /&gt;
....| rex field=source "var/log/remote/smg/mail\d+/\w+/(?[^/]*)/"&lt;/P&gt;

&lt;P&gt;but not in props.conf?? &lt;BR /&gt;
Why? i tried with quotes and without quotes....&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jul 2016 13:32:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/props-conf-field-extraction/m-p/286218#M8010</guid>
      <dc:creator>nikkkc</dc:creator>
      <dc:date>2016-07-28T13:32:26Z</dc:date>
    </item>
    <item>
      <title>Re: props.conf field extraction</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/props-conf-field-extraction/m-p/286219#M8011</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;xxs Security deletes some characters...

Hi,
i try to extract a field in props.conf on search head/indexer. Data comes from UF.

props.conf
[mysyslog]
EXTRACT-level = "var/log/remote/smg/mail\d+/\w+/(?&amp;lt;level&amp;gt;[^/]*)/" in source

source: /var/log/remote/smg/mail01/mail/info/xxxxx.log

the regex work´s in search:
....| rex field=source "var/log/remote/smg/mail\d+/\w+/(?&amp;lt;level&amp;gt;[^/]*)/"

but not in props.conf??
Why? i tried with quotes and without quotes....
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 28 Jul 2016 13:54:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/props-conf-field-extraction/m-p/286219#M8011</guid>
      <dc:creator>nikkkc</dc:creator>
      <dc:date>2016-07-28T13:54:09Z</dc:date>
    </item>
    <item>
      <title>Re: props.conf field extraction</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/props-conf-field-extraction/m-p/286220#M8012</link>
      <description>&lt;P&gt;Removed: Wrong headed answer about EXTRACT vs REPORT&lt;/P&gt;

&lt;P&gt;This was likely the cause of your problems:  No quotes around the regex, in either case.&lt;/P&gt;

&lt;P&gt;My recommendation:&lt;/P&gt;

&lt;P&gt;props.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[mysyslog]
REPORT-level = extract_level
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;transforms.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[extract_level]
SOURCE_KEY = source
REGEX = var/log/remote/smg/mail\d+/\w+/([^/]*)/
FORMAT = mylevel::$1
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 28 Jul 2016 14:00:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/props-conf-field-extraction/m-p/286220#M8012</guid>
      <dc:creator>twinspop</dc:creator>
      <dc:date>2016-07-28T14:00:04Z</dc:date>
    </item>
    <item>
      <title>Re: props.conf field extraction</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/props-conf-field-extraction/m-p/286221#M8013</link>
      <description>&lt;P&gt;You definitely don't need quotes. verify your updated props.conf is on your intended search head. you can also check this with the btool command&lt;BR /&gt;
&lt;PRE&gt;./splunk cmd btool props list &lt;/PRE&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jul 2016 14:01:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/props-conf-field-extraction/m-p/286221#M8013</guid>
      <dc:creator>pradeepkumarg</dc:creator>
      <dc:date>2016-07-28T14:01:11Z</dc:date>
    </item>
    <item>
      <title>Re: props.conf field extraction</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/props-conf-field-extraction/m-p/286222#M8014</link>
      <description>&lt;P&gt;EXTRACT is not index time field extractions. Check below from props.conf documentation&lt;/P&gt;

&lt;PRE&gt;Use the TRANSFORMS field extraction type to create index-time field
extractions. Use the REPORT or EXTRACT field extraction types to create
search-time field extractions.&lt;/PRE&gt;</description>
      <pubDate>Thu, 28 Jul 2016 14:05:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/props-conf-field-extraction/m-p/286222#M8014</guid>
      <dc:creator>pradeepkumarg</dc:creator>
      <dc:date>2016-07-28T14:05:14Z</dc:date>
    </item>
    <item>
      <title>Re: props.conf field extraction</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/props-conf-field-extraction/m-p/286223#M8015</link>
      <description>&lt;P&gt;Ah crap, you're right. Too early in the morning. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jul 2016 14:09:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/props-conf-field-extraction/m-p/286223#M8015</guid>
      <dc:creator>twinspop</dc:creator>
      <dc:date>2016-07-28T14:09:30Z</dc:date>
    </item>
    <item>
      <title>Re: props.conf field extraction</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/props-conf-field-extraction/m-p/286224#M8016</link>
      <description>&lt;P&gt;We learned in class the following -&lt;/P&gt;

&lt;P&gt;Use extraction directives, &lt;CODE&gt;EXTRACT&lt;/CODE&gt; and &lt;CODE&gt;REPORT&lt;/CODE&gt; in &lt;CODE&gt;props.conf&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;EXTARCT&lt;/CODE&gt; (inline extraction) is defined in &lt;CODE&gt;props.conf&lt;/CODE&gt; as standalone&lt;BR /&gt;
&lt;CODE&gt;REPORT&lt;/CODE&gt;  (field transform) is defined in &lt;CODE&gt;transform.conf&lt;/CODE&gt; and invoked from &lt;CODE&gt;props.conf&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jul 2016 14:17:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/props-conf-field-extraction/m-p/286224#M8016</guid>
      <dc:creator>ddrillic</dc:creator>
      <dc:date>2016-07-28T14:17:11Z</dc:date>
    </item>
    <item>
      <title>Re: props.conf field extraction</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/props-conf-field-extraction/m-p/286225#M8017</link>
      <description>&lt;P&gt;first i want to say thank you.&lt;BR /&gt;
still one question: i do not need to specify the field in regex? like &lt;CODE&gt;?&amp;lt;mylevel&amp;gt;&lt;/CODE&gt;&lt;BR /&gt;
OK, if i specify the field then i do not need the line: FORMAT = mylevel&lt;BR /&gt;
right?&lt;/P&gt;

&lt;P&gt;Anyway, i did a  | extract reload=t &lt;BR /&gt;
but still no new filed in my search gui&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jul 2016 05:56:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/props-conf-field-extraction/m-p/286225#M8017</guid>
      <dc:creator>nikkkc</dc:creator>
      <dc:date>2016-07-29T05:56:55Z</dc:date>
    </item>
    <item>
      <title>Re: props.conf field extraction</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/props-conf-field-extraction/m-p/286226#M8018</link>
      <description>&lt;P&gt;...i do not want to waste more time for this, does it make a differnece to use the rex in search query or to define in props and transforms conf?? because it work´s in search query&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jul 2016 06:19:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/props-conf-field-extraction/m-p/286226#M8018</guid>
      <dc:creator>nikkkc</dc:creator>
      <dc:date>2016-07-29T06:19:22Z</dc:date>
    </item>
    <item>
      <title>Re: props.conf field extraction</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/props-conf-field-extraction/m-p/286227#M8019</link>
      <description>&lt;P&gt;after restart splunk it works. &lt;/P&gt;</description>
      <pubDate>Fri, 29 Jul 2016 09:24:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/props-conf-field-extraction/m-p/286227#M8019</guid>
      <dc:creator>nikkkc</dc:creator>
      <dc:date>2016-07-29T09:24:01Z</dc:date>
    </item>
  </channel>
</rss>

