<?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: Eliminate some values in specific field in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-Eliminate-some-values-in-specific-field/m-p/592608#M76532</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/244555"&gt;@jeff1&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;in this case, you have to follow the steps in the first link, if few words, you have to create on your Indexers or (when present) on your Heavy Forwarders the files you shared.&lt;/P&gt;&lt;P&gt;If they don't work, please share a sample of your logs (someone to delete and someone to not delete) to check your regex,&lt;/P&gt;&lt;P&gt;then, where do you located props.conf and transforms.conf?&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
    <pubDate>Wed, 06 Apr 2022 08:24:42 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2022-04-06T08:24:42Z</dc:date>
    <item>
      <title>How to Eliminate some values in specific field?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-Eliminate-some-values-in-specific-field/m-p/592584#M76526</link>
      <description>&lt;P&gt;I am trying to write an add-on to eliminate some values in a specific field by plugging in a file containing props.conf and transforms.conf into the splunk/etc/apps directory but failed to get any result.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please give me some advice, my configuration files are as follows:&lt;/P&gt;
&lt;P&gt;props.conf:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;[source: path to the log file]&lt;/P&gt;
&lt;P&gt;TRANSFORMS-elim= elimValue&lt;/P&gt;
&lt;P&gt;transforms.conf:&lt;/P&gt;
&lt;P&gt;[elimValue]&lt;BR /&gt;REGEX=^(type=[A-T]+)&lt;BR /&gt;DEST_KEY=queue&lt;BR /&gt;FORMAT=nullQueue&lt;/P&gt;
&lt;P&gt;Grateful for any help, thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2022 15:28:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-Eliminate-some-values-in-specific-field/m-p/592584#M76526</guid>
      <dc:creator>jeff1</dc:creator>
      <dc:date>2022-04-06T15:28:39Z</dc:date>
    </item>
    <item>
      <title>Re: Eliminate some values in specific field</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-Eliminate-some-values-in-specific-field/m-p/592600#M76529</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/244555"&gt;@jeff1&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;your request isn't so clear for me, are you asking of:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;discard some full events before indexing,&lt;/LI&gt;&lt;LI&gt;delete a part of events&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;?&lt;/P&gt;&lt;P&gt;In the first case you have to follow the steps at&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.2.5/Forwarding/Routeandfilterdatad" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/8.2.5/Forwarding/Routeandfilterdatad&lt;/A&gt;&lt;/P&gt;&lt;P&gt;In the second case, you have to follow the steps at&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.2.5/Data/Anonymizedata" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/8.2.5/Data/Anonymizedata&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2022 08:06:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-Eliminate-some-values-in-specific-field/m-p/592600#M76529</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-04-06T08:06:02Z</dc:date>
    </item>
    <item>
      <title>Re: Eliminate some values in specific field</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-Eliminate-some-values-in-specific-field/m-p/592602#M76530</link>
      <description>&lt;P&gt;If you want to anonymize some part of the event, it's an index-time operation. Where did you put this app? And what is your event's path to indexers.&lt;/P&gt;&lt;P&gt;And did you verify the effective config with btool?&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2022 08:11:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-Eliminate-some-values-in-specific-field/m-p/592602#M76530</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2022-04-06T08:11:38Z</dc:date>
    </item>
    <item>
      <title>Re: Eliminate some values in specific field</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-Eliminate-some-values-in-specific-field/m-p/592603#M76531</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I want to discard events that contain specific values in a field in index-time.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2022 08:12:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-Eliminate-some-values-in-specific-field/m-p/592603#M76531</guid>
      <dc:creator>jeff1</dc:creator>
      <dc:date>2022-04-06T08:12:55Z</dc:date>
    </item>
    <item>
      <title>Re: Eliminate some values in specific field</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-Eliminate-some-values-in-specific-field/m-p/592608#M76532</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/244555"&gt;@jeff1&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;in this case, you have to follow the steps in the first link, if few words, you have to create on your Indexers or (when present) on your Heavy Forwarders the files you shared.&lt;/P&gt;&lt;P&gt;If they don't work, please share a sample of your logs (someone to delete and someone to not delete) to check your regex,&lt;/P&gt;&lt;P&gt;then, where do you located props.conf and transforms.conf?&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2022 08:24:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-Eliminate-some-values-in-specific-field/m-p/592608#M76532</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-04-06T08:24:42Z</dc:date>
    </item>
    <item>
      <title>Re: Eliminate some values in specific field</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-Eliminate-some-values-in-specific-field/m-p/592610#M76533</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/231884"&gt;@PickleRick&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I put those configuration in a file called local and place it under /opt/splunk/etc/apps directory.&amp;nbsp; For the second question, I am sorry I did not understand it.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2022 08:30:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-Eliminate-some-values-in-specific-field/m-p/592610#M76533</guid>
      <dc:creator>jeff1</dc:creator>
      <dc:date>2022-04-06T08:30:22Z</dc:date>
    </item>
    <item>
      <title>Re: Eliminate some values in specific field</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-Eliminate-some-values-in-specific-field/m-p/592616#M76535</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I do have both indexer and heavy forwarder in my testing environment, may I ask if you mean all index-time operation conf. file is better put in Indexer or Heavy Forwarder? As both of my conf. files mentioned above are put under the path of /etc/apps in Search Head.&lt;/P&gt;&lt;P&gt;Here are some of my logs:&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;type=USER_END&lt;/SPAN&gt; &lt;SPAN class=""&gt;msg=audit&lt;/SPAN&gt;&lt;SPAN&gt;(xxxxxxxxxxxx)&amp;nbsp;&lt;SPAN class=""&gt;source =&lt;/SPAN&gt;&amp;nbsp;/var/log/audit/audit.log&amp;nbsp; &amp;nbsp; &amp;lt;- log to keep&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;type=CRED_DISP&lt;/SPAN&gt; &lt;SPAN class=""&gt;msg=audit&lt;/SPAN&gt;(xxxxxxxxxx)&amp;nbsp;&lt;SPAN class=""&gt;source =&lt;/SPAN&gt;&amp;nbsp;/var/log/audit/audit.log&amp;nbsp; &amp;lt;-log to eliminate&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I am trying to eliminate all logs other than (type=USER_*), where [type] is the interesting field.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Sorry for the messy elaboration.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2022 08:43:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-Eliminate-some-values-in-specific-field/m-p/592616#M76535</guid>
      <dc:creator>jeff1</dc:creator>
      <dc:date>2022-04-06T08:43:53Z</dc:date>
    </item>
    <item>
      <title>Re: Eliminate some values in specific field</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-Eliminate-some-values-in-specific-field/m-p/592617#M76536</link>
      <description>&lt;P&gt;The typical splunk environment consists of indexer(s) and search head(s) (or a single all-in-one installation in case of small setups), optional heavy forwardes and universal forwarders.&lt;/P&gt;&lt;P&gt;I suppose you have a simple setup consisting of an all-in-one server either reading files directly from disk or using universal forwarders to ingest data. In this case your settings should be put on the all-in-one server itself. (if you had a heavy forwarder, they'd need to be put there).&lt;/P&gt;&lt;P&gt;And with the "where" in terms of directory - you skipped one component of the path.&lt;/P&gt;&lt;P&gt;If you're creating an app called ABC, you put it into /opt/splunk/etc/apps/ABC and there you create directories like /opt/splunk/etc/apps/ABC/default, /opt/splunk/etc/apps/ABC/local, /opt/splunk/etc/apps/ABC/lookups and so on.&lt;/P&gt;&lt;P&gt;So if you put your conf file(s) in /opt/splunk/etc/apps/local, splunk will ignore them.&lt;/P&gt;&lt;P&gt;Oh, and remember about the config file precedence &lt;A href="https://docs.splunk.com/Documentation/Splunk/8.2.5/Admin/Wheretofindtheconfigurationfiles" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/8.2.5/Admin/Wheretofindtheconfigurationfiles&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2022 08:48:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-Eliminate-some-values-in-specific-field/m-p/592617#M76536</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2022-04-06T08:48:50Z</dc:date>
    </item>
    <item>
      <title>Re: Eliminate some values in specific field</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-Eliminate-some-values-in-specific-field/m-p/592618#M76537</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/244555"&gt;@jeff1&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;about the location of the conf files, if you're sure that all your logs to filter pass through the HFs, you have to put them on HFs, otherwise you have to put them both on IDXs and HFs.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if you want to take only the events where&amp;nbsp;&lt;/STRONG&gt;&lt;SPAN&gt;&lt;STRONG&gt;type=USER_END&lt;/STRONG&gt; you have to use the following props.conf and transforms.conf:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;props.con&lt;/STRONG&gt;f:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[source: path to the log file]
TRANSFORMS-set = setnull,setparsing&lt;/LI-CODE&gt;&lt;P&gt;&lt;STRONG&gt;transforms.conf&lt;/STRONG&gt;:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[setnull]
REGEX = .
DEST_KEY = queue
FORMAT = nullQueue

[setparsing]
REGEX = ^type\=USER_END
DEST_KEY = queue
FORMAT = indexQueue&lt;/LI-CODE&gt;&lt;P&gt;If instead &lt;STRONG&gt;you want to discard only&amp;nbsp;&lt;/STRONG&gt;&lt;SPAN&gt;&lt;STRONG&gt;type=CRED_DISP&lt;/STRONG&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;you have to use the following props.conf and transforms.conf:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;props.conf&lt;/STRONG&gt;:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[source: path to the log file]
TRANSFORMS-null= setnull&lt;/LI-CODE&gt;&lt;P&gt;&lt;STRONG&gt;transforms.conf&lt;/STRONG&gt;:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[setnull]
REGEX = ^type\=CRED_DISP
DEST_KEY = queue
FORMAT = nullQueue&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2022 08:55:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-Eliminate-some-values-in-specific-field/m-p/592618#M76537</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-04-06T08:55:34Z</dc:date>
    </item>
    <item>
      <title>Re: Eliminate some values in specific field</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-Eliminate-some-values-in-specific-field/m-p/592621#M76538</link>
      <description>&lt;P&gt;The index-time operations are done on the first "heavy" (based on a full splunk enterprise installaton, not on universal forwarder package) component as the event traverses your network to the indexer.&lt;/P&gt;&lt;P&gt;So if you have simple UF-&amp;gt;indexer setup, you need to put your index-time operations configuration on the indexer. If you have more complicated setup, like - for example - UF -&amp;gt; UF -&amp;gt; HF -&amp;gt; indexer, you need to put it on HF.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2022 09:08:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-Eliminate-some-values-in-specific-field/m-p/592621#M76538</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2022-04-06T09:08:02Z</dc:date>
    </item>
  </channel>
</rss>

