<?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: How to extract the fields using regex and props.conf at indexing time? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-the-fields-using-regex-and-props-conf-at-indexing/m-p/367226#M108326</link>
    <description>&lt;P&gt;Hey @kiran331, this documentation might help &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.1.3/Data/Advancedsourcetypeoverrides"&gt;http://docs.splunk.com/Documentation/Splunk/6.1.3/Data/Advancedsourcetypeoverrides&lt;/A&gt; &lt;/P&gt;</description>
    <pubDate>Fri, 11 Aug 2017 22:39:24 GMT</pubDate>
    <dc:creator>lfedak_splunk</dc:creator>
    <dc:date>2017-08-11T22:39:24Z</dc:date>
    <item>
      <title>How to extract the fields using regex and props.conf at indexing time?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-the-fields-using-regex-and-props-conf-at-indexing/m-p/367225#M108325</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;How to use Regex in props.conf to extract the fields in the below sample event with source type "syslog".&lt;/P&gt;

&lt;P&gt;08/11/17 13:30:34 abckdefrg44 openfep[1123]: [log.c][411]: CPM ALSLLER (ID 5): pin_alarm-DOFRI 22.33.22.5.0 -c 453 1 0 -r 449 0 -v "ONLINE" "FEP" "level Group 33. status" "Status now online" &amp;amp;&lt;/P&gt;

&lt;P&gt;Group: level Group 33. status&lt;BR /&gt;
Status: Status now online&lt;/P&gt;</description>
      <pubDate>Fri, 11 Aug 2017 20:03:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-the-fields-using-regex-and-props-conf-at-indexing/m-p/367225#M108325</guid>
      <dc:creator>kiran331</dc:creator>
      <dc:date>2017-08-11T20:03:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract the fields using regex and props.conf at indexing time?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-the-fields-using-regex-and-props-conf-at-indexing/m-p/367226#M108326</link>
      <description>&lt;P&gt;Hey @kiran331, this documentation might help &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.1.3/Data/Advancedsourcetypeoverrides"&gt;http://docs.splunk.com/Documentation/Splunk/6.1.3/Data/Advancedsourcetypeoverrides&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Fri, 11 Aug 2017 22:39:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-the-fields-using-regex-and-props-conf-at-indexing/m-p/367226#M108326</guid>
      <dc:creator>lfedak_splunk</dc:creator>
      <dc:date>2017-08-11T22:39:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract the fields using regex and props.conf at indexing time?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-the-fields-using-regex-and-props-conf-at-indexing/m-p/367227#M108327</link>
      <description>&lt;P&gt;Assuming that there's some level of consistency in your syslog event, and "FEP" will always be there, you could do the following props.conf extract, using "FEP" as a starting point for your regex.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[syslog]
EXTRACT-Group = \"FEP\"\s\"(.*?)\"
EXTRACT-Status = \"FEP\"\s\"(?:.*?)\"\s\"(.*?)\"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Your could use regex101 to practice your regex extractions, make sure to anonymize the data before doing so, nobody knows what that site does to your sample events.&lt;/P&gt;

&lt;P&gt;Hope it helps, shout if you need more help.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Aug 2017 23:18:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-the-fields-using-regex-and-props-conf-at-indexing/m-p/367227#M108327</guid>
      <dc:creator>santiagoaloi</dc:creator>
      <dc:date>2017-08-11T23:18:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract the fields using regex and props.conf at indexing time?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-the-fields-using-regex-and-props-conf-at-indexing/m-p/367228#M108328</link>
      <description>&lt;P&gt;Please read this article. It is insightful about the use of index time field extractions:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://answers.splunk.com/answers/396276/should-i-use-an-index-time-field-extraction.html"&gt;https://answers.splunk.com/answers/396276/should-i-use-an-index-time-field-extraction.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Splunk best practice is to do search time field extractions. There are those that are questioning this as you can see by reading the whole answer and comment on this in this article:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://answers.splunk.com/answers/2535/search-time-vs-index-time-field-extraction.html"&gt;https://answers.splunk.com/answers/2535/search-time-vs-index-time-field-extraction.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;If you are still intent on doing index-time extraction, read this article, as it might give you some help in doing it:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://answers.splunk.com/answers/234011/index-time-field-extraction-regexp-issue.html"&gt;https://answers.splunk.com/answers/234011/index-time-field-extraction-regexp-issue.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;And for the official documentation, see this page:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/SplunkCloud/6.6.1/Data/Configureindex-timefieldextraction"&gt;http://docs.splunk.com/Documentation/SplunkCloud/6.6.1/Data/Configureindex-timefieldextraction&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;And finally, this is the REGEX I would use:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;REGEX="(?&amp;lt;Group&amp;gt;[^"]*)"\s+"(?&amp;lt;Status&amp;gt;[^"]*)"\s*&amp;amp;$
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But it should go in the &lt;CODE&gt;transforms.conf&lt;/CODE&gt;, not &lt;CODE&gt;props.conf&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Aug 2017 23:34:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-the-fields-using-regex-and-props-conf-at-indexing/m-p/367228#M108328</guid>
      <dc:creator>cpetterborg</dc:creator>
      <dc:date>2017-08-11T23:34:08Z</dc:date>
    </item>
  </channel>
</rss>

