<?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: Exclude events in index time? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Exclude-events-in-index-time/m-p/476256#M99758</link>
    <description>&lt;P&gt;Hi aalhabbash1,&lt;BR /&gt;
this means that in all your events there the "pid" string, so you have to find a different differentiator to filter your events.&lt;/P&gt;

&lt;P&gt;Ciao.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
    <pubDate>Thu, 07 Nov 2019 09:02:30 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2019-11-07T09:02:30Z</dc:date>
    <item>
      <title>Exclude events in index time?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Exclude-events-in-index-time/m-p/476251#M99753</link>
      <description>&lt;P&gt;Hi Splunker;&lt;/P&gt;

&lt;P&gt;we need to exclude the below, any event has the below form in index time, this event come to Splunk is has 2 forms.&lt;BR /&gt;
I used the below configuration but not work, please help me in that:&lt;/P&gt;

&lt;P&gt;Configuration:&lt;/P&gt;

&lt;P&gt;in transforms.conf:&lt;/P&gt;

&lt;P&gt;[setnull]&lt;BR /&gt;
REGEX = pid&lt;BR /&gt;
DEST_KEY = queue&lt;BR /&gt;
FORMAT = nullQueue&lt;/P&gt;

&lt;P&gt;In props.conf:&lt;/P&gt;

&lt;P&gt;TRANSFORMS-null= setnull&lt;/P&gt;

&lt;P&gt;Events:&lt;/P&gt;

&lt;P&gt;first form:&lt;/P&gt;

&lt;P&gt;{ [-]&lt;BR /&gt;
   k: msg&lt;BR /&gt;
   pid: 37552&lt;BR /&gt;
   req: -&lt;BR /&gt;
   sess: -&lt;BR /&gt;
   sev: info&lt;BR /&gt;
   site: -&lt;BR /&gt;
   tid: 4958&lt;BR /&gt;
   ts: 2019-11-06T17:06:06.305&lt;BR /&gt;
   user: -&lt;BR /&gt;
   v: Resource Manager: Memory info: 73,793,536 bytes (current process);52,410,015,744 bytes (Tableau total); 49,979,158,528 bytes (total of all processes); 30 (info count)&lt;BR /&gt;
}&lt;/P&gt;

&lt;P&gt;Second Form:&lt;/P&gt;

&lt;P&gt;{"ts":"2019-11-06T17:06:06.305","pid":37552,"tid":"4958","sev":"info","req":"-","sess":"-","site":"-","user":"-","k":"msg","v":"Resource Manager: Memory info: 73,793,536 bytes (current process);52,410,015,744 bytes (Tableau total); 49,979,158,528 bytes (total of all processes); 30 (info count)"}&lt;/P&gt;

&lt;P&gt;BR;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2019 14:15:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Exclude-events-in-index-time/m-p/476251#M99753</guid>
      <dc:creator>aalhabbash1</dc:creator>
      <dc:date>2019-11-06T14:15:35Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude events in index time?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Exclude-events-in-index-time/m-p/476252#M99754</link>
      <description>&lt;P&gt;Hi aalhabbash1,&lt;BR /&gt;
where do you located these props.conf and transforms.conf files?&lt;BR /&gt;
they must stay on Indexers or (when present) on Heavy Forwarders, not on Universal Forwarders.&lt;/P&gt;

&lt;P&gt;Then, what do you used in props before &lt;CODE&gt;TRANSFORMS-null= setnull&lt;/CODE&gt; ? sourcetype, host?&lt;/P&gt;

&lt;P&gt;Ciao.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2019 14:25:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Exclude-events-in-index-time/m-p/476252#M99754</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2019-11-06T14:25:06Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude events in index time?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Exclude-events-in-index-time/m-p/476253#M99755</link>
      <description>&lt;P&gt;H Gcusello;&lt;/P&gt;

&lt;P&gt;Yes I added it in indxers.&lt;/P&gt;

&lt;P&gt;I used the below;&lt;/P&gt;

&lt;P&gt;[my sourcetype]&lt;BR /&gt;
TRANSFORMS-null= setnull&lt;/P&gt;

&lt;P&gt;Thank you;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Nov 2019 03:54:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Exclude-events-in-index-time/m-p/476253#M99755</guid>
      <dc:creator>aalhabbash1</dc:creator>
      <dc:date>2019-11-07T03:54:50Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude events in index time?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Exclude-events-in-index-time/m-p/476254#M99756</link>
      <description>&lt;P&gt;Hi aalhabbash1,&lt;BR /&gt;
obviously you restarted Splunk after configuration update.&lt;/P&gt;

&lt;P&gt;So, run a search in Splunk like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=your_index
| regex "pid"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This search should find the same events to discard, it's useful to understand if the regex is correct: if results are the events to discard, it's correct, otherwise you have to modify it.&lt;/P&gt;

&lt;P&gt;Eventually, try with:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;REGEX = (pid)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Ciao.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Thu, 07 Nov 2019 07:40:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Exclude-events-in-index-time/m-p/476254#M99756</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2019-11-07T07:40:57Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude events in index time?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Exclude-events-in-index-time/m-p/476255#M99757</link>
      <description>&lt;P&gt;Hi Gcusello;&lt;/P&gt;

&lt;P&gt;Thank you for reply;&lt;/P&gt;

&lt;P&gt;I run the below search and the regex is work: &lt;/P&gt;

&lt;P&gt;index=your_index&lt;BR /&gt;
 | regex "pid"&lt;/P&gt;

&lt;P&gt;And puted:&lt;BR /&gt;
REGEX = (pid)&lt;/P&gt;

&lt;P&gt;But when I push to indexers servers, the Splunk stop receiving logs from it, and when remove the it splunk return to receiving logs.&lt;/P&gt;

&lt;P&gt;What is the problem.&lt;/P&gt;

&lt;P&gt;BR;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Nov 2019 08:35:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Exclude-events-in-index-time/m-p/476255#M99757</guid>
      <dc:creator>aalhabbash1</dc:creator>
      <dc:date>2019-11-07T08:35:06Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude events in index time?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Exclude-events-in-index-time/m-p/476256#M99758</link>
      <description>&lt;P&gt;Hi aalhabbash1,&lt;BR /&gt;
this means that in all your events there the "pid" string, so you have to find a different differentiator to filter your events.&lt;/P&gt;

&lt;P&gt;Ciao.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Thu, 07 Nov 2019 09:02:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Exclude-events-in-index-time/m-p/476256#M99758</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2019-11-07T09:02:30Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude events in index time?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Exclude-events-in-index-time/m-p/476257#M99759</link>
      <description>&lt;P&gt;Hi Gcusello;&lt;/P&gt;

&lt;P&gt;Ok, can you make 1 regex for the below format logs, to success the exclude these logs?&lt;/P&gt;

&lt;P&gt;first form:&lt;BR /&gt;
{ [-]&lt;BR /&gt;
k: msg&lt;BR /&gt;
pid: 37552&lt;BR /&gt;
req: -&lt;BR /&gt;
sess: -&lt;BR /&gt;
sev: info&lt;BR /&gt;
site: -&lt;BR /&gt;
tid: 4958&lt;BR /&gt;
ts: 2019-11-06T17:06:06.305&lt;BR /&gt;
user: -&lt;BR /&gt;
v: Resource Manager: Memory info: 73,793,536 bytes (current process);52,410,015,744 bytes (Tableau total); 49,979,158,528 bytes (total of all processes); 30 (info count)&lt;BR /&gt;
}&lt;/P&gt;

&lt;P&gt;Second Form:&lt;BR /&gt;
{"ts":"2019-11-06T17:06:06.305","pid":37552,"tid":"4958","sev":"info","req":"-","sess":"-","site":"-","user":"-","k":"msg","v":"Resource Manager: Memory info: 73,793,536 bytes (current process);52,410,015,744 bytes (Tableau total); 49,979,158,528 bytes (total of all processes); 30 (info count)"}&lt;/P&gt;

&lt;P&gt;Thank you;&lt;/P&gt;</description>
      <pubDate>Sun, 10 Nov 2019 05:35:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Exclude-events-in-index-time/m-p/476257#M99759</guid>
      <dc:creator>aalhabbash1</dc:creator>
      <dc:date>2019-11-10T05:35:20Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude events in index time?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Exclude-events-in-index-time/m-p/476258#M99760</link>
      <description>&lt;P&gt;Hi aalhabbash1,,&lt;BR /&gt;
the problem is to find a regex to match only events to discard (or only events to take), if you share only one sample, we cannot be sure that the regex match only the events to discard (e.g. the previous regex), so you should share a sample of events to discard and a sample of events to take.&lt;/P&gt;

&lt;P&gt;Ciao.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Sun, 10 Nov 2019 09:18:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Exclude-events-in-index-time/m-p/476258#M99760</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2019-11-10T09:18:40Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude events in index time?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Exclude-events-in-index-time/m-p/476259#M99761</link>
      <description>&lt;P&gt;what field identifies these forms ? I would guess pid is available in all your events. If yes, then this will filter everything if REGEX is changed to (pid)&lt;/P&gt;</description>
      <pubDate>Sun, 10 Nov 2019 12:08:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Exclude-events-in-index-time/m-p/476259#M99761</guid>
      <dc:creator>arjunpkishore5</dc:creator>
      <dc:date>2019-11-10T12:08:25Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude events in index time?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Exclude-events-in-index-time/m-p/476260#M99762</link>
      <description>&lt;P&gt;Ok I will provide you the sample logs from the events which I want and which don't want,&lt;/P&gt;

&lt;P&gt;Please help me to make regex.&lt;/P&gt;

&lt;P&gt;Format which I need:&lt;/P&gt;

&lt;P&gt;2019-11-10 15:22:32.662 +0300 (Default,mydzit.gov.sa\kalsolai,4C8EC4A70F3149988B93370B16CADBEE-0:0,XcgBCNSpBpjM51ezrQYXrQAAAgE) catalina-exec-150 : INFO  wgsessionId=rd9xUhIUR92tuPbGQkZrNQ com.tableausoftware.domain.session.SessionService - Non-guest user session found.&lt;/P&gt;

&lt;P&gt;AND:&lt;/P&gt;

&lt;P&gt;2019-11-10 15:22:40.816 +0300 (Default,mydzit.gov.sa\kalsolai,F853E8F10C2742CBB071A090C3047519-0:0,XcgBENSpBpjM51ezrQYXvwAAAZE) catalina-exec-151 : INFO  wgsessionId=rd9xUhIUR92tuPbGQkZrNQ com.tableausoftware.model.vizql.util.WithSessionAspect - Command not allowed on a shared session F853E8F10C2742CBB071A090C3047519. Cloning to a private session and retrying.&lt;/P&gt;

&lt;P&gt;Format which no need:&lt;/P&gt;

&lt;P&gt;first form:&lt;BR /&gt;
{ [-]&lt;BR /&gt;
k: msg&lt;BR /&gt;
pid: 37552&lt;BR /&gt;
req: -&lt;BR /&gt;
sess: -&lt;BR /&gt;
sev: info&lt;BR /&gt;
site: -&lt;BR /&gt;
tid: 4958&lt;BR /&gt;
ts: 2019-11-06T17:06:06.305&lt;BR /&gt;
user: -&lt;BR /&gt;
v: Resource Manager: Memory info: 73,793,536 bytes (current process);52,410,015,744 bytes (Tableau total); 49,979,158,528 bytes (total of all processes); 30 (info count)&lt;BR /&gt;
}&lt;/P&gt;

&lt;P&gt;Second Form:&lt;BR /&gt;
{"ts":"2019-11-06T17:06:06.305","pid":37552,"tid":"4958","sev":"info","req":"-","sess":"-","site":"-","user":"-","k":"msg","v":"Resource Manager: Memory info: 73,793,536 bytes (current process);52,410,015,744 bytes (Tableau total); 49,979,158,528 bytes (total of all processes); 30 (info count)"}&lt;/P&gt;

&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Sun, 10 Nov 2019 12:34:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Exclude-events-in-index-time/m-p/476260#M99762</guid>
      <dc:creator>aalhabbash1</dc:creator>
      <dc:date>2019-11-10T12:34:45Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude events in index time?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Exclude-events-in-index-time/m-p/476261#M99763</link>
      <description>&lt;P&gt;Hi aalhabbash1,&lt;BR /&gt;
try this regex&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(?ms)pid.*?req
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;that you can test at &lt;A href="https://regex101.com/r/oBQOe8/1"&gt;https://regex101.com/r/oBQOe8/1&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Ciao.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Mon, 11 Nov 2019 08:23:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Exclude-events-in-index-time/m-p/476261#M99763</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2019-11-11T08:23:59Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude events in index time?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Exclude-events-in-index-time/m-p/476262#M99764</link>
      <description>&lt;P&gt;Hi @gcusello &lt;/P&gt;

&lt;P&gt;Done; good job.&lt;/P&gt;

&lt;P&gt;I appreciate your effort &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; &lt;/P&gt;

&lt;P&gt;BR;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Nov 2019 09:22:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Exclude-events-in-index-time/m-p/476262#M99764</guid>
      <dc:creator>aalhabbash1</dc:creator>
      <dc:date>2019-11-11T09:22:19Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude events in index time?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Exclude-events-in-index-time/m-p/476263#M99765</link>
      <description>&lt;P&gt;Hi @aalhabbash1,&lt;BR /&gt;
you're welcome!&lt;BR /&gt;
if this answer solves your problem, please accept and/or upvote it,&lt;BR /&gt;
Ciao and next time!&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Mon, 11 Nov 2019 09:24:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Exclude-events-in-index-time/m-p/476263#M99765</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2019-11-11T09:24:25Z</dc:date>
    </item>
  </channel>
</rss>

