<?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 make extraction persistent and save the extracted fields if it called from rex command in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-make-extraction-persistent-and-save-the-extracted-fields/m-p/87304#M5666</link>
    <description>&lt;P&gt;I am using Splunk Enterprise 6.0.3 and I am having the similar issue. I have created the extraction pattern through a web but don't find a way to save it and use it persistently. All I see in the prop.conf is the name of extraction and other config contains the field names that I have defined.&lt;/P&gt;</description>
    <pubDate>Mon, 07 Mar 2016 19:42:49 GMT</pubDate>
    <dc:creator>vishalgakhare</dc:creator>
    <dc:date>2016-03-07T19:42:49Z</dc:date>
    <item>
      <title>How to make extraction persistent and save the extracted fields if it called from rex command</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-make-extraction-persistent-and-save-the-extracted-fields/m-p/87300#M5662</link>
      <description>&lt;P&gt;I'm trying to extract fields from a source name of files, but those extraction are partially saved as a new field on Splunk. How to save those extracted source to be saved and persistent on Splunk if i login/logout.&lt;/P&gt;

&lt;P&gt;source name example = app4_error_webservices.log&lt;BR /&gt;
command used:&lt;BR /&gt;
 sourcetype="log4j" | rex field=source "/.&lt;EM&gt;/&lt;/EM&gt;./(?&lt;HOST_1&gt;.&lt;EM&gt;)_(?&lt;LOGTYPE&gt;.&lt;/LOGTYPE&gt;&lt;/EM&gt;)_(?&lt;ORIGINE&gt;.*).log"&lt;/ORIGINE&gt;&lt;/HOST_1&gt;&lt;/P&gt;

&lt;P&gt;The fields that need to be saved always are host_1, logtype , origine.&lt;BR /&gt;
How to do that? any steps?&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Roy&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 13:41:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-make-extraction-persistent-and-save-the-extracted-fields/m-p/87300#M5662</guid>
      <dc:creator>royimad</dc:creator>
      <dc:date>2020-09-28T13:41:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to make extraction persistent and save the extracted fields if it called from rex command</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-make-extraction-persistent-and-save-the-extracted-fields/m-p/87301#M5663</link>
      <description>&lt;P&gt;There are a couple of choices either the Web UI or editing the configuration files directly. &lt;/P&gt;

&lt;P&gt;You can add a field extraction in the Manager--&amp;gt;Fields--&amp;gt;Field extractions--&amp;gt;New&lt;/P&gt;

&lt;P&gt;Apply the field extraction to the sourcetype of log4j. Once you save this then the $SPLUNK_HOME/etc/users/&lt;USER_NAME&gt;/&lt;APP_NAME&gt;/local/props.conf&lt;/APP_NAME&gt;&lt;/USER_NAME&gt;&lt;/P&gt;

&lt;P&gt;Now you can just edit the props.conf file and create the extraction with the following syntax. Which props.conf file you edit depends on the permissions and app context. Here is the first location that Splunk will look for the props.conf:&lt;/P&gt;

&lt;P&gt;$SPLUNK_HOME/etc/system/local/props.conf&lt;/P&gt;

&lt;P&gt;Create the following stanza:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[log4j]
EXTRACT-logtype = /././(?&amp;lt;host_1&amp;gt;.)_(?&amp;lt;logtype&amp;gt;.)_(?&amp;lt;origine&amp;gt;.*).log
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Here are some links to more information:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Knowledge/Addfieldsatsearchtime" target="_blank"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Knowledge/Addfieldsatsearchtime&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Hope that helps. &lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 13:41:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-make-extraction-persistent-and-save-the-extracted-fields/m-p/87301#M5663</guid>
      <dc:creator>tgow</dc:creator>
      <dc:date>2020-09-28T13:41:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to make extraction persistent and save the extracted fields if it called from rex command</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-make-extraction-persistent-and-save-the-extracted-fields/m-p/87302#M5664</link>
      <description>&lt;P&gt;I need to extract from source file name and this wouldn't work .&lt;/P&gt;</description>
      <pubDate>Mon, 08 Apr 2013 14:32:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-make-extraction-persistent-and-save-the-extracted-fields/m-p/87302#M5664</guid>
      <dc:creator>royimad</dc:creator>
      <dc:date>2013-04-08T14:32:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to make extraction persistent and save the extracted fields if it called from rex command</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-make-extraction-persistent-and-save-the-extracted-fields/m-p/87303#M5665</link>
      <description>&lt;P&gt;the following stanza could not work - i need to tell splunk to extract the field from the source file name.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Apr 2013 14:33:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-make-extraction-persistent-and-save-the-extracted-fields/m-p/87303#M5665</guid>
      <dc:creator>royimad</dc:creator>
      <dc:date>2013-04-08T14:33:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to make extraction persistent and save the extracted fields if it called from rex command</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-make-extraction-persistent-and-save-the-extracted-fields/m-p/87304#M5666</link>
      <description>&lt;P&gt;I am using Splunk Enterprise 6.0.3 and I am having the similar issue. I have created the extraction pattern through a web but don't find a way to save it and use it persistently. All I see in the prop.conf is the name of extraction and other config contains the field names that I have defined.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Mar 2016 19:42:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-make-extraction-persistent-and-save-the-extracted-fields/m-p/87304#M5666</guid>
      <dc:creator>vishalgakhare</dc:creator>
      <dc:date>2016-03-07T19:42:49Z</dc:date>
    </item>
  </channel>
</rss>

