<?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 drop events from being indexed in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/drop-events-from-being-indexed/m-p/327256#M93072</link>
    <description>&lt;P&gt;I have a request from some users of mine to do the following.&lt;/P&gt;

&lt;P&gt;I need to drop events from a source and user  ..&lt;/P&gt;

&lt;P&gt;source: /var/log/uds/uds.log&lt;BR /&gt;
user: dsapi_perftest&lt;/P&gt;</description>
    <pubDate>Wed, 11 Apr 2018 14:18:47 GMT</pubDate>
    <dc:creator>sreynolds30</dc:creator>
    <dc:date>2018-04-11T14:18:47Z</dc:date>
    <item>
      <title>drop events from being indexed</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/drop-events-from-being-indexed/m-p/327256#M93072</link>
      <description>&lt;P&gt;I have a request from some users of mine to do the following.&lt;/P&gt;

&lt;P&gt;I need to drop events from a source and user  ..&lt;/P&gt;

&lt;P&gt;source: /var/log/uds/uds.log&lt;BR /&gt;
user: dsapi_perftest&lt;/P&gt;</description>
      <pubDate>Wed, 11 Apr 2018 14:18:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/drop-events-from-being-indexed/m-p/327256#M93072</guid>
      <dc:creator>sreynolds30</dc:creator>
      <dc:date>2018-04-11T14:18:47Z</dc:date>
    </item>
    <item>
      <title>Re: drop events from being indexed</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/drop-events-from-being-indexed/m-p/327257#M93073</link>
      <description>&lt;P&gt;Could you please try this query&lt;/P&gt;

&lt;P&gt;source= /var/log/uds/uds.log NOT "dsapi_perftest"&lt;/P&gt;

&lt;P&gt;it will produce the event without the user from a source you mentioned&lt;/P&gt;</description>
      <pubDate>Wed, 11 Apr 2018 15:25:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/drop-events-from-being-indexed/m-p/327257#M93073</guid>
      <dc:creator>logloganathan</dc:creator>
      <dc:date>2018-04-11T15:25:01Z</dc:date>
    </item>
    <item>
      <title>Re: drop events from being indexed</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/drop-events-from-being-indexed/m-p/327258#M93074</link>
      <description>&lt;P&gt;@sreynolds30, one of the options you have is to search the data to be made unsearchable and run the delete command. You have to be aware that it will only make the data unsearchable and not remove from storage. Read about the &lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Delete"&gt;delete&lt;/A&gt; command and understand its usage before applying.&lt;/P&gt;

&lt;P&gt;Also before you delete existing data, you should also make sure that source &lt;CODE&gt;uds.log&lt;/CODE&gt; is not sending data for &lt;CODE&gt;user dsapi_perftest&lt;/CODE&gt;. If it is you should apply Regular Expression to filter out the event. Refer to documentation to filter data and send &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Forwarding/Routeandfilterdatad#Discard_specific_events_and_keep_the_rest"&gt;unwanted events to nullQueue&lt;/A&gt; before indexing.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Apr 2018 16:00:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/drop-events-from-being-indexed/m-p/327258#M93074</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2018-04-11T16:00:58Z</dc:date>
    </item>
    <item>
      <title>Re: drop events from being indexed</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/drop-events-from-being-indexed/m-p/327259#M93075</link>
      <description>&lt;P&gt;Sorry I guess i should have stated this better... that i just want to drop this events from being indexed and leave everything else within that source.&lt;/P&gt;

&lt;P&gt;I'll look at the unwanted events to nullQueue&lt;/P&gt;</description>
      <pubDate>Wed, 11 Apr 2018 18:01:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/drop-events-from-being-indexed/m-p/327259#M93075</guid>
      <dc:creator>sreynolds30</dc:creator>
      <dc:date>2018-04-11T18:01:56Z</dc:date>
    </item>
    <item>
      <title>Re: drop events from being indexed</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/drop-events-from-being-indexed/m-p/327260#M93076</link>
      <description>&lt;P&gt;Sorry I guess i should have stated this better... that i just want to drop this events from being indexed and leave everything else within that source.&lt;/P&gt;

&lt;P&gt;I'll look at the unwanted events to nullQueue&lt;/P&gt;</description>
      <pubDate>Wed, 11 Apr 2018 18:02:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/drop-events-from-being-indexed/m-p/327260#M93076</guid>
      <dc:creator>sreynolds30</dc:creator>
      <dc:date>2018-04-11T18:02:46Z</dc:date>
    </item>
    <item>
      <title>Re: drop events from being indexed</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/drop-events-from-being-indexed/m-p/327261#M93077</link>
      <description>&lt;P&gt;@sreynolds30, nullQueue will drop future events from being indexed however, you delete command was a suggestion for clearing out existing events for the user which are already indexed. Even if you do not delete, they would age out based on your index bucket rollover policy/size.&lt;/P&gt;

&lt;P&gt;Please try out nullQueue and confirm whether you need further assistance.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Apr 2018 18:44:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/drop-events-from-being-indexed/m-p/327261#M93077</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2018-04-11T18:44:48Z</dc:date>
    </item>
    <item>
      <title>Re: drop events from being indexed</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/drop-events-from-being-indexed/m-p/327262#M93078</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/201110"&gt;@niketn&lt;/a&gt; Thanks for the input.&lt;/P&gt;

&lt;P&gt;I'm working on the nullQueue in a different test but it's not working as i think it should. Here's a sample of the logs that i don't want to index from my client from this source but just for that user.&lt;/P&gt;

&lt;P&gt;2018-04-11T08:49:34,140 1077.dti.net [UDS] http-nio-8080-exec-25 (com.uds.logging.RequestLogger) INFO - env="UDS-US-Stable" requestid="bWGDWVP7FJMNhjD@awAAAC8" user="dsapi_perftest" tenantid="625c-bd25-47a5-a12d-4db5396d4ceb"  role="dsapi_perftest" appid="b6de5707-cbee-477b-a332-98edce3e38e9" appname="qdxmmldbpubk" requests="1000" records="1000" status="200" method="POST" URL="/uds/batch/match/"&lt;BR /&gt;
2018-04-11T08:49:34,353 1077.dti.net [UDS] http-nio-8080-exec-46 (com.uds.logging.RequestLogger) INFO - env="UDS-US-Stable" requestid="bmGDWVP7FJMNhjD@bAAAAC8" user="dsapi_perftest" tenantid="625c-bd25-47a5-a12d-4db5396d4ceb"  role="dsapi_perftest" appid="b6de5707-cbee-477b-a332-98edce3e38e9" appname="qdxmmldbpubk" requests="1000" records="1000" status="200" method="POST" URL="/uds/batch/match/"&lt;BR /&gt;
2018-04-11T08:49:34,552 1077.dti.net [UDS] http-nio-8080-exec-173 (com.uds.logging.RequestLogger) INFO - env="UDS-US-Stable" requestid="bmGDWVP7FJMNhjD@bQAAAC8" user="dsapi_perftest" tenantid="625c-bd25-47a5-a12d-4db5396d4ceb" role="dsapi_perftest" appid="b6de5707-cbee-477b-a332-98edce3e38e9" appname="qdxmmldbpubk" requests="1000" records="1000" status="200" method="POST" URL="/uds/batch/match/"&lt;BR /&gt;
2018-04-11T08:49:34,763 1077.dti.net [UDS] http-nio-8080-exec-236 (com.uds.logging.RequestLogger) INFO - env="UDS-US-Stable" requestid="bmGDWVP7FJMNhjD@bgAAAC8" user="dsapi_perftest" tenantid="625c-bd25-47a5-a12d-4db5396d4ceb" role="dsapi_perftest" appid="b6de5707-cbee-477b-a332-98edce3e38e9" appname="qdxmmldbpubk" requests="1000" records="1000" status="200" method="POST" URL="/uds/batch/match/"&lt;BR /&gt;
2018-04-11T08:49:34,989 1077.dti.net [UDS] http-nio-8080-exec-157 (com.uds.logging.RequestLogger) INFO - env="UDS-US-Stable" requestid="bmGDWVP7FJMNhjD@bwAAAC8" user="dsapi_perftest" tenantid="625c-bd25-47a5-a12d-4db5396d4ceb" role="dsapi_perftest" appid="b6de5707-cbee-477b-a332-98edce3e38e9" appname="qdxmmldbpubk" requests="1000" records="1000" status="200" method="POST" URL="/uds/batch/match/"&lt;BR /&gt;
2018-04-11T08:49:35,196 1077.dti.net [UDS] http-nio-8080-exec-180 (com.uds.logging.RequestLogger) INFO - env="UDS-US-Stable" requestid="b2GDWVP7FJMNhjD@cAAAAC8" user="dsapi_perftest" tenantid="625c-bd25-47a5-a12d-4db5396d4ceb" role="dsapi_perftest" appid="b6de5707-cbee-477b-a332-98edce3e38e9" appname="qdxmmldbpubk" requests="1000" records="1000" status="200" method="POST" URL="/uds/batch/match/"&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 18:58:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/drop-events-from-being-indexed/m-p/327262#M93078</guid>
      <dc:creator>sreynolds30</dc:creator>
      <dc:date>2020-09-29T18:58:48Z</dc:date>
    </item>
    <item>
      <title>Re: drop events from being indexed</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/drop-events-from-being-indexed/m-p/327263#M93079</link>
      <description>&lt;P&gt;@sreynolds30, have you tried the configurations on the following line?&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;props.conf&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[yourSourceType]
TRANSFORMS-nullQueueUnwantedUser = nullQueueUnwantedUser
&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;[nullQueueUnwantedUser]
REGEX = user\=\"dsapi_perftest\"
DEST_KEY = queue
FORMAT = nullQueue
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Test using Splunk's _internal index whether events are getting dropped or not:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal sourcetype=splunkd source=*metrics.log component=metrics group=pipeline processor=nullqueue
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Also, events can be dropped on indexers or Heavy Forwarders, not on Universal Forwarder.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Apr 2018 05:33:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/drop-events-from-being-indexed/m-p/327263#M93079</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2018-04-12T05:33:03Z</dc:date>
    </item>
    <item>
      <title>Re: drop events from being indexed</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/drop-events-from-being-indexed/m-p/327264#M93080</link>
      <description>&lt;P&gt;I got it working.  Thanks for the feedback @niketnilay&lt;/P&gt;</description>
      <pubDate>Tue, 17 Apr 2018 19:47:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/drop-events-from-being-indexed/m-p/327264#M93080</guid>
      <dc:creator>sreynolds30</dc:creator>
      <dc:date>2018-04-17T19:47:51Z</dc:date>
    </item>
    <item>
      <title>Re: drop events from being indexed</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/drop-events-from-being-indexed/m-p/327265#M93081</link>
      <description>&lt;P&gt;@sreynolds30, glad you got it to work. I have converted my comment to answer. Accept to mark this as answered and upvote the comments that helped.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Apr 2018 19:54:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/drop-events-from-being-indexed/m-p/327265#M93081</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2018-04-17T19:54:42Z</dc:date>
    </item>
    <item>
      <title>Re: drop events from being indexed</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/drop-events-from-being-indexed/m-p/574705#M101574</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/201110"&gt;@niketn&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please help me out here.&amp;nbsp; I have a little different scenario. We are integrating the json logs via HEC into Splunk Heavy Forwarder.&lt;/P&gt;&lt;P&gt;I have tried the below configurations.I am applying the props for the source.&lt;/P&gt;&lt;P&gt;In transforms, there are different regexes and I would want to route it to different indexes based on log files and route all the other files not required to a null queue. I would not be able to use FORMAT=indexqueue in transforms.conf as I cannot mention multiple indexes in inputs.conf .This is not working and no data is getting indexed. Kindly help.&lt;/P&gt;&lt;P&gt;The configs are like below:&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;PROPS.CONF --&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;[source::*model-app*]&lt;BR /&gt;TRANSFORMS-segment=setnull,security_logs,application_logs,provisioning_logs&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;TRANSFORMS.CONF --&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;[setnull]&lt;BR /&gt;REGEX=class\"\:\"(.*?)\"&lt;BR /&gt;DEST_KEY = queue&lt;BR /&gt;FORMAT = nullQueue&lt;/P&gt;&lt;P&gt;[security_logs]&lt;BR /&gt;REGEX=(class\"\:\"(/var/log/cron|/var/log/audit/audit.log|/var/log/messages|/var/log/secure)\")&lt;BR /&gt;DEST_KEY=_MetaData:Index&lt;BR /&gt;FORMAT=model_sec&lt;BR /&gt;WRITE_META=true&lt;BR /&gt;LOOKAHEAD=40000&lt;/P&gt;&lt;P&gt;[application_logs]&lt;BR /&gt;REGEX=(class\"\:\"(/var/log/application.log|/var/log/local*?.log)\")&lt;BR /&gt;DEST_KEY=_MetaData:Index&lt;BR /&gt;FORMAT=model_app&lt;BR /&gt;WRITE_META=true&lt;BR /&gt;LOOKAHEAD=40000&lt;/P&gt;&lt;P&gt;[provisioning_logs]&lt;BR /&gt;REGEX=class\"\:\"(/opt/provgw-error_msg.log|/opt/provgw-bulkrequest.log|/opt/provgw/provgw-spml_command.log.*?)\"&lt;BR /&gt;DEST_KEY=_MetaData:Index&lt;BR /&gt;FORMAT=model_prov&lt;BR /&gt;WRITE_META=true&lt;/P&gt;</description>
      <pubDate>Fri, 12 Nov 2021 08:00:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/drop-events-from-being-indexed/m-p/574705#M101574</guid>
      <dc:creator>bhargavi</dc:creator>
      <dc:date>2021-11-12T08:00:52Z</dc:date>
    </item>
  </channel>
</rss>

