<?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 remove all events containing specific values in Splunk? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-remove-all-events-containing-specific-values-in-Splunk/m-p/345151#M63445</link>
    <description>&lt;P&gt;Hi rich, actually we are getting the below list of events along with other useful events containing detailed information, so we wanted to remove the below un-wanted events from being indexed in to splunk. &lt;/P&gt;

&lt;P&gt;search query : index=x  sourcetype = xxx:xxx:xxx&lt;/P&gt;

&lt;P&gt;output: &lt;BR /&gt;
4/24/17 &lt;BR /&gt;
1:44:41.000 PM&lt;BR /&gt;&lt;BR /&gt;
Event Timestamp: April 24, 2017 13:44:41&lt;BR /&gt;
host = test.xxx.com source = /opt/syslogs/network/test.xxx.com/xxx.log sourcetype = xxx:xxx:xxx&lt;BR /&gt;
4/24/17 &lt;BR /&gt;
1:44:41.000 PM&lt;BR /&gt;&lt;BR /&gt;
Event Timestamp: April 24, 2017 13:44:41&lt;BR /&gt;
host = test.xxx.com source = /opt/syslogs/network/test.xxx.com/xxx.log sourcetype = xxx:xxx:xxx&lt;BR /&gt;
4/24/17 &lt;BR /&gt;
1:44:41.000 PM&lt;BR /&gt;&lt;BR /&gt;
Event Timestamp: April 24, 2017 13:44:41&lt;BR /&gt;
host = test.xxx.com source = /opt/syslogs/network/test.xxx.com/xxx.log sourcetype = xxx:xxx:xxx&lt;/P&gt;

&lt;P&gt;So to discard the above events and keep the rest of the actual events, I had created a props.conf and transform.conf but not sure whether above configuration will help in removing the data. &lt;BR /&gt;
Kindly guide in doing in this.&lt;/P&gt;</description>
    <pubDate>Mon, 24 Apr 2017 18:09:30 GMT</pubDate>
    <dc:creator>Hemnaath</dc:creator>
    <dc:date>2017-04-24T18:09:30Z</dc:date>
    <item>
      <title>How to remove all events containing specific values in Splunk?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-remove-all-events-containing-specific-values-in-Splunk/m-p/345146#M63440</link>
      <description>&lt;P&gt;Hi All, Can any one guide me, on how to remove all events containing only the below listed events from rest of the events ?  I am sure that we need to configure props.conf and transforms.conf , but not sure what to configure in props and how to right a regex in transforms.conf  to remove the events  .  &lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Event Timestamp: April 24, 2017 12:54:34&lt;BR /&gt;&lt;BR /&gt;
  Event Timestamp: April 24, 2017 12:55:30 &lt;BR /&gt;
  Event Timestamp: April 24, 2017 12:56:34&lt;/STRONG&gt; &lt;/P&gt;

&lt;P&gt;Kindly guide me how to configure to remove the above events from rest of the events.  &lt;/P&gt;</description>
      <pubDate>Mon, 24 Apr 2017 17:21:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-remove-all-events-containing-specific-values-in-Splunk/m-p/345146#M63440</guid>
      <dc:creator>Hemnaath</dc:creator>
      <dc:date>2017-04-24T17:21:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove all events containing specific values in Splunk?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-remove-all-events-containing-specific-values-in-Splunk/m-p/345147#M63441</link>
      <description>&lt;P&gt;Hi All, I have configured props.conf and transforms.conf to discard specific events and keep the rest events in splunk. But not sure whether this is the correct regex to do so. Kindly help in correcting the regex and setting it right to remove specific events and keep the rest events indexed.&lt;/P&gt;

&lt;P&gt;Discard specific events and keep the rest events&lt;/P&gt;

&lt;P&gt;props.conf &lt;/P&gt;

&lt;P&gt;[source::/opt/syslogs/network/.../xxx.log] --- &amp;gt;  &lt;STRONG&gt;Source of the file from where splunk reads the data&lt;/STRONG&gt; &lt;BR /&gt;
TRANSFORMS-null= setnull&lt;/P&gt;

&lt;P&gt;Transforms.conf &lt;/P&gt;

&lt;P&gt;[setnull]&lt;BR /&gt;
REGEX = [Event Timestamp: April 24, 2017 12:54:34] -- &amp;gt; &lt;STRONG&gt;events to be removed from the data&lt;/STRONG&gt; &lt;BR /&gt;
DEST_KEY = queue&lt;BR /&gt;
FORMAT = nullQueue&lt;/P&gt;

&lt;P&gt;Kindly guide me whether the above props and transforms.conf can be used to remove specific events and keep the rest.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Apr 2017 17:50:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-remove-all-events-containing-specific-values-in-Splunk/m-p/345147#M63441</guid>
      <dc:creator>Hemnaath</dc:creator>
      <dc:date>2017-04-24T17:50:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove all events containing specific values in Splunk?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-remove-all-events-containing-specific-values-in-Splunk/m-p/345148#M63442</link>
      <description>&lt;P&gt;Firstly, do you actually &lt;STRONG&gt;need to *delete&lt;/STRONG&gt;* the events from the indexes?  If that's the case, then...&lt;/P&gt;

&lt;P&gt;Carefully craft a search that returns those rows and ONLY those rows.  There's isn't enough information here to know precisely what it is that search will look like.  Maybe &lt;CODE&gt;index=X sourcetype=Y "Event Timestamp: April 24, 2017 12:56:34" OR "Event Timestamp: April 24, 2017 12:54:34" OR "Event Timestamp: April 24, 2017 12:55:30"&lt;/CODE&gt;  Make double sure this works right.  Then follow the steps in &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.5.3/Indexer/RemovedatafromSplunk#Delete_events_from_subsequent_searches"&gt;the documentation on removing data from indexes&lt;/A&gt; using YOUR search to prevent those results from showing up again.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;If instead&lt;/EM&gt;&lt;/STRONG&gt; you only need to make sure you don't index those when they come in, you'll have to be more specific about why you want them gone.  Much like the problem above where I had to say I don't know precisely what it is you are trying to delete, I don't know exactly what it is you are trying to remove.  Are these empty lines (basically) with just a timestamp?  Where are they coming from?  How do they relate to the log lines you WANT to keep?  Best would be to remove them from the sending source (or configure your syslog collector or whatever to ignore them).  We can go down this route if necessary (and probably someone will!)&lt;/P&gt;</description>
      <pubDate>Mon, 24 Apr 2017 17:55:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-remove-all-events-containing-specific-values-in-Splunk/m-p/345148#M63442</guid>
      <dc:creator>Richfez</dc:creator>
      <dc:date>2017-04-24T17:55:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove all events containing specific values in Splunk?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-remove-all-events-containing-specific-values-in-Splunk/m-p/345149#M63443</link>
      <description>&lt;P&gt;I just answered - this comment is very helpful and I wish we wouldn't have been both updating at the same time.  Still, the answer I gave on deleting them may be useful to others.  &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;So, do you need to not index these events, or do you need to delete the events already indexed?&lt;/P&gt;

&lt;P&gt;The answer I gave below should help with actually &lt;EM&gt;deleting&lt;/EM&gt; them.  If you need to &lt;EM&gt;not index&lt;/EM&gt; them then it will require a different answer, much more like your technique above.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Apr 2017 17:57:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-remove-all-events-containing-specific-values-in-Splunk/m-p/345149#M63443</guid>
      <dc:creator>Richfez</dc:creator>
      <dc:date>2017-04-24T17:57:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove all events containing specific values in Splunk?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-remove-all-events-containing-specific-values-in-Splunk/m-p/345150#M63444</link>
      <description>&lt;P&gt;To recap "how to delete data" from the docs, it's basically&lt;BR /&gt;
  1) Add "delete" capabilities to a role (preferably use a special user)&lt;BR /&gt;
  2) Log in as that role&lt;BR /&gt;
  3) Create a search that returns the events you want gone.  Like &lt;CODE&gt;mysearchhere&lt;/CODE&gt;&lt;BR /&gt;
  4) &lt;CODE&gt;mysearchhere | delete&lt;/CODE&gt; &lt;BR /&gt;
  5) Confirm.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Apr 2017 17:58:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-remove-all-events-containing-specific-values-in-Splunk/m-p/345150#M63444</guid>
      <dc:creator>Richfez</dc:creator>
      <dc:date>2017-04-24T17:58:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove all events containing specific values in Splunk?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-remove-all-events-containing-specific-values-in-Splunk/m-p/345151#M63445</link>
      <description>&lt;P&gt;Hi rich, actually we are getting the below list of events along with other useful events containing detailed information, so we wanted to remove the below un-wanted events from being indexed in to splunk. &lt;/P&gt;

&lt;P&gt;search query : index=x  sourcetype = xxx:xxx:xxx&lt;/P&gt;

&lt;P&gt;output: &lt;BR /&gt;
4/24/17 &lt;BR /&gt;
1:44:41.000 PM&lt;BR /&gt;&lt;BR /&gt;
Event Timestamp: April 24, 2017 13:44:41&lt;BR /&gt;
host = test.xxx.com source = /opt/syslogs/network/test.xxx.com/xxx.log sourcetype = xxx:xxx:xxx&lt;BR /&gt;
4/24/17 &lt;BR /&gt;
1:44:41.000 PM&lt;BR /&gt;&lt;BR /&gt;
Event Timestamp: April 24, 2017 13:44:41&lt;BR /&gt;
host = test.xxx.com source = /opt/syslogs/network/test.xxx.com/xxx.log sourcetype = xxx:xxx:xxx&lt;BR /&gt;
4/24/17 &lt;BR /&gt;
1:44:41.000 PM&lt;BR /&gt;&lt;BR /&gt;
Event Timestamp: April 24, 2017 13:44:41&lt;BR /&gt;
host = test.xxx.com source = /opt/syslogs/network/test.xxx.com/xxx.log sourcetype = xxx:xxx:xxx&lt;/P&gt;

&lt;P&gt;So to discard the above events and keep the rest of the actual events, I had created a props.conf and transform.conf but not sure whether above configuration will help in removing the data. &lt;BR /&gt;
Kindly guide in doing in this.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Apr 2017 18:09:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-remove-all-events-containing-specific-values-in-Splunk/m-p/345151#M63445</guid>
      <dc:creator>Hemnaath</dc:creator>
      <dc:date>2017-04-24T18:09:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove all events containing specific values in Splunk?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-remove-all-events-containing-specific-values-in-Splunk/m-p/345152#M63446</link>
      <description>&lt;P&gt;Hi All, can any one guide me on whether the below props and transforms.conf can be used to remove the unwanted data from getting into splunk. i.e is to discard specific events and keep the rest in splunk.&lt;/P&gt;

&lt;P&gt;Discard specific events and keep the rest events&lt;/P&gt;

&lt;P&gt;props.conf&lt;/P&gt;

&lt;P&gt;[source::/opt/syslogs/network/.../xxx.log] --- &amp;gt; Source of the file from where splunk reads the data &lt;BR /&gt;
TRANSFORMS-null= setnull&lt;/P&gt;

&lt;P&gt;Transforms.conf&lt;/P&gt;

&lt;P&gt;[setnull]&lt;BR /&gt;
REGEX =  [Event Timestamp: April 24, 2017 12:54:34] -- &amp;gt; events to be removed from the data &lt;BR /&gt;
DEST_KEY = queue&lt;BR /&gt;
FORMAT = nullQueue&lt;/P&gt;

&lt;P&gt;thanks in advance &lt;/P&gt;</description>
      <pubDate>Mon, 24 Apr 2017 19:38:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-remove-all-events-containing-specific-values-in-Splunk/m-p/345152#M63446</guid>
      <dc:creator>Hemnaath</dc:creator>
      <dc:date>2017-04-24T19:38:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove all events containing specific values in Splunk?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-remove-all-events-containing-specific-values-in-Splunk/m-p/345153#M63447</link>
      <description>&lt;P&gt;Seems to be correct and inline with what Splunk suggests. (&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.5.2/Forwarding/Routeandfilterdatad#Discard_specific_events_and_keep_the_rest"&gt;http://docs.splunk.com/Documentation/Splunk/6.5.2/Forwarding/Routeandfilterdatad#Discard_specific_events_and_keep_the_rest&lt;/A&gt;). Make sure it's setup in the Splunk instance which does the parsing (Indexer or heavy forwarder, whichever comes first in the flow) and restart Splunk.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Apr 2017 20:17:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-remove-all-events-containing-specific-values-in-Splunk/m-p/345153#M63447</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-04-24T20:17:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove all events containing specific values in Splunk?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-remove-all-events-containing-specific-values-in-Splunk/m-p/345154#M63448</link>
      <description>&lt;P&gt;Hi Somesoni, thanks I have modified and used the above props and transforms.conf in Heavy Forwarder instances to remove the above events and keep the rest of the events to be indexed. &lt;/P&gt;

&lt;P&gt;Modified Transforms.conf &lt;/P&gt;

&lt;P&gt;[setnull]&lt;BR /&gt;
REGEX = Event Timestamp &lt;BR /&gt;
DEST_KEY = queue&lt;BR /&gt;
FORMAT = nullQueue&lt;/P&gt;

&lt;P&gt;After implementing the transforms.conf, the events are removed and could see other events getting indexed now.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Apr 2017 17:27:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-remove-all-events-containing-specific-values-in-Splunk/m-p/345154#M63448</guid>
      <dc:creator>Hemnaath</dc:creator>
      <dc:date>2017-04-25T17:27:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove all events containing specific values in Splunk?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-remove-all-events-containing-specific-values-in-Splunk/m-p/345155#M63449</link>
      <description>&lt;P&gt;Hi there!&lt;/P&gt;

&lt;P&gt;I've got something similar with this:&lt;/P&gt;

&lt;P&gt;source="WinEventLog:Security" | eval EventCode=if(EventCode="4801","NewName4801",EventCode) | eval EventCode=if(EventCode="4800","NameNew4800",EventCode) | eval EventCode=if(EventCode="4625","CertainDescription4625",EventCode)&lt;/P&gt;

&lt;P&gt;But now i want to remove some EventCode from Field List in order to remain only 4801, 4800, 4625.&lt;/P&gt;

&lt;P&gt;How do i do that? What do i have to type next in serch tab?&lt;/P&gt;

&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Sep 2018 14:46:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-remove-all-events-containing-specific-values-in-Splunk/m-p/345155#M63449</guid>
      <dc:creator>bogdan_nicolesc</dc:creator>
      <dc:date>2018-09-20T14:46:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove all events containing specific values in Splunk?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-remove-all-events-containing-specific-values-in-Splunk/m-p/345156#M63450</link>
      <description>&lt;P&gt;Found my answer from here: &lt;A href="https://answers.splunk.com/answers/48398/how-to-exclude-a-list-of-values-for-a-field.html"&gt;link text&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;So i had to make a list of codes to be removed from searchresult and enter it in search bar:&lt;/P&gt;

&lt;P&gt;source="WinEventLog:Security" Type=* NOT (EventCode=4719 OR EventCode=4624 OR EventCode=4672 OR EventCode=4627 OR EventCode=4634 OR EventCode=4648 OR EventCode=4688 OR EventCode=4616 OR EventCode=4826 OR EventCode=4957 OR EventCode=4776 OR EventCode=1100 OR EventCode=4902 OR EventCode=4647 OR EventCode=1101 OR EventCode=4696 OR EventCode=4905 OR EventCode=4904) | eval EventCode=if(EventCode="4801","Deblocat4801",EventCode) | eval EventCode=if(EventCode="4801","NewName4801",EventCode) | eval EventCode=if(EventCode="4800","NameNew4800",EventCode) | eval EventCode=if(EventCode="4625","CertainDescription4625",EventCode)&lt;/P&gt;</description>
      <pubDate>Mon, 24 Sep 2018 11:06:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-remove-all-events-containing-specific-values-in-Splunk/m-p/345156#M63450</guid>
      <dc:creator>bogdan_nicolesc</dc:creator>
      <dc:date>2018-09-24T11:06:52Z</dc:date>
    </item>
  </channel>
</rss>

