<?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: Query for exclude words in a raw data in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Query-for-exclude-words-in-a-raw-data/m-p/546655#M154968</link>
    <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;there is no fields to segregate.&lt;/P&gt;&lt;P&gt;Actually, the question is In a Linux machined using JPS command some services is are running, ex: Kafka, JPS etc with PID, if any services are stopped we need to get an alert.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Here some tricky idea I have, so if the keyword "Kafka" is not seen in events for more than 1 minute I want to get that alert, so based on this the application team to know oh! the Kafka services are not running in that particulate host.&lt;/P&gt;&lt;P&gt;Here is the Query:&lt;BR /&gt;index="main" host="linux machine" source="logs" "Kafka"&lt;BR /&gt;&lt;BR /&gt;Please suggest the query to get the alert when "Kafka" word is seen more than 1 minitue.&lt;/P&gt;</description>
    <pubDate>Mon, 05 Apr 2021 06:26:45 GMT</pubDate>
    <dc:creator>phanichintha</dc:creator>
    <dc:date>2021-04-05T06:26:45Z</dc:date>
    <item>
      <title>Query for exclude words in a raw data</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Query-for-exclude-words-in-a-raw-data/m-p/546494#M154931</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;As shown in the below picture, those are the events with a timestamp. I want when a "Kafka" service or "Jps" services are down, I will get an alert. How to write a search query for this when any of the below services are down, I will get an alert.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="phanichintha_0-1617351412943.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/13590i6A9AE4CDB4E96262/image-size/medium?v=v2&amp;amp;px=400" role="button" title="phanichintha_0-1617351412943.png" alt="phanichintha_0-1617351412943.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Apr 2021 08:21:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Query-for-exclude-words-in-a-raw-data/m-p/546494#M154931</guid>
      <dc:creator>phanichintha</dc:creator>
      <dc:date>2021-04-02T08:21:39Z</dc:date>
    </item>
    <item>
      <title>Re: Query for exclude words in a raw data</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Query-for-exclude-words-in-a-raw-data/m-p/546496#M154932</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/185959"&gt;@phanichintha&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;if you have few words to search, you can insert them in your main search:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;your_search&amp;gt; (Kafka OR Jps OR &amp;lt;other_words&amp;gt;)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if these words are in a field, you can use the field to have more performat searches (e.g. they are in a field called "service"):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;your_search&amp;gt; (service=Kafka OR service=Jps OR servide=&amp;lt;other_words&amp;gt;)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If instead you have many words to check, you can put them in a lookup (called e.g. "patterns.csv" with a single column called "pattern"), if you haven't them in a field:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;your_search&amp;gt; [ | inputlookup patterns | rename pattern AS query | fields query]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if you have them in a field:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;your_search&amp;gt; [ | inputlookup patterns | fields pattern ]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;At the end I hint to follow the basic training in Splunk&amp;nbsp;&lt;SPAN&gt;: Fundamentals i course (&lt;/SPAN&gt;&lt;A href="https://www.splunk.com/en_us/training/free-courses/splunk-fundamentals-1.html" target="_blank" rel="nofollow noopener noreferrer"&gt;https://www.splunk.com/en_us/training/free-courses/splunk-fundamentals-1.html&lt;/A&gt;&lt;SPAN&gt;) that's a free course and the Search Tutorial (&lt;/SPAN&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.1.0/SearchTutorial/WelcometotheSearchTutorial" target="_blank" rel="nofollow noopener noreferrer"&gt;https://docs.splunk.com/Documentation/Splunk/8.1.0/SearchTutorial/WelcometotheSearchTutorial&lt;/A&gt;&lt;SPAN&gt;) that help you to understand how Splunk works.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Apr 2021 08:48:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Query-for-exclude-words-in-a-raw-data/m-p/546496#M154932</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2021-04-02T08:48:47Z</dc:date>
    </item>
    <item>
      <title>Re: Query for exclude words in a raw data</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Query-for-exclude-words-in-a-raw-data/m-p/546655#M154968</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;there is no fields to segregate.&lt;/P&gt;&lt;P&gt;Actually, the question is In a Linux machined using JPS command some services is are running, ex: Kafka, JPS etc with PID, if any services are stopped we need to get an alert.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Here some tricky idea I have, so if the keyword "Kafka" is not seen in events for more than 1 minute I want to get that alert, so based on this the application team to know oh! the Kafka services are not running in that particulate host.&lt;/P&gt;&lt;P&gt;Here is the Query:&lt;BR /&gt;index="main" host="linux machine" source="logs" "Kafka"&lt;BR /&gt;&lt;BR /&gt;Please suggest the query to get the alert when "Kafka" word is seen more than 1 minitue.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Apr 2021 06:26:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Query-for-exclude-words-in-a-raw-data/m-p/546655#M154968</guid>
      <dc:creator>phanichintha</dc:creator>
      <dc:date>2021-04-05T06:26:45Z</dc:date>
    </item>
    <item>
      <title>Re: Query for exclude words in a raw data</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Query-for-exclude-words-in-a-raw-data/m-p/546658#M154970</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/185959"&gt;@phanichintha&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;as I said, if you have to search the presence of few word (e.g. only "Kafka"), you can use the search you shared:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index="main" host="linux machine" source="logs" "Kafka" earliest-1m@m latest now&lt;/LI-CODE&gt;&lt;P&gt;and save it as an alert scheduled to run every minute (cron * * * * *)&lt;/P&gt;&lt;P&gt;then configure it to send an email or make another action.&lt;/P&gt;&lt;P&gt;Only one meditation: meybe a time period of one minute is too frequent and not efficient, because you and your team probably haven't a reaction time of one minute, so you could also use a little larger time frame (e.g. 5 minutes).&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Mon, 05 Apr 2021 07:00:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Query-for-exclude-words-in-a-raw-data/m-p/546658#M154970</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2021-04-05T07:00:23Z</dc:date>
    </item>
    <item>
      <title>Re: Query for exclude words in a raw data</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Query-for-exclude-words-in-a-raw-data/m-p/546661#M154971</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;Thanks for helping!&lt;/P&gt;&lt;P&gt;If you see the below query and latest log in that able to see the "Kafka" is running, So in the same case I need if the service "Kafka" is not present in that list I want to know with alert.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="phanichintha_0-1617607443299.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/13606i0CEC4734645666EE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="phanichintha_0-1617607443299.png" alt="phanichintha_0-1617607443299.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Apr 2021 07:26:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Query-for-exclude-words-in-a-raw-data/m-p/546661#M154971</guid>
      <dc:creator>phanichintha</dc:creator>
      <dc:date>2021-04-05T07:26:42Z</dc:date>
    </item>
    <item>
      <title>Re: Query for exclude words in a raw data</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Query-for-exclude-words-in-a-raw-data/m-p/546662#M154972</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/185959"&gt;@phanichintha&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;you have to use as trigger condition: Number of results = 0.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Mon, 05 Apr 2021 07:31:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Query-for-exclude-words-in-a-raw-data/m-p/546662#M154972</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2021-04-05T07:31:47Z</dc:date>
    </item>
    <item>
      <title>Re: Query for exclude words in a raw data</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Query-for-exclude-words-in-a-raw-data/m-p/546680#M154980</link>
      <description>&lt;P&gt;&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;what are all you suggesting it's not working for me, you can see the sample alert I got.&lt;BR /&gt;Please help, if the keyword in the below list is not in any events will get mail. Can you provide a solution for this?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="phanichintha_0-1617614294275.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/13609i5AA6354A5BA145F7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="phanichintha_0-1617614294275.png" alt="phanichintha_0-1617614294275.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Apr 2021 09:20:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Query-for-exclude-words-in-a-raw-data/m-p/546680#M154980</guid>
      <dc:creator>phanichintha</dc:creator>
      <dc:date>2021-04-05T09:20:14Z</dc:date>
    </item>
    <item>
      <title>Re: Query for exclude words in a raw data</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Query-for-exclude-words-in-a-raw-data/m-p/546688#M154983</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/185959"&gt;@phanichintha&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;sorry but I don't understand your need, so I try to summarize it:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;you have one or more words (as kafka or Jps) that are usually present in your logs,&lt;/LI&gt;&lt;LI&gt;you need to have an alert when one of these words isn't present in your logs in one minute;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;is it correct?&lt;/P&gt;&lt;P&gt;If this is your need the below search is correct:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index="main" host="linux machine" source="logs" (Kafka OR Jps) earliest=-1m@m latest=now&lt;/LI-CODE&gt;&lt;P&gt;and you have to configure your alert to trigger when there's no result.&lt;/P&gt;&lt;P&gt;What's your problem:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;has the above search always results?&lt;/LI&gt;&lt;LI&gt;have you problems to configure the trigger condition in the alert?&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Mon, 05 Apr 2021 09:50:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Query-for-exclude-words-in-a-raw-data/m-p/546688#M154983</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2021-04-05T09:50:21Z</dc:date>
    </item>
    <item>
      <title>Re: Query for exclude words in a raw data</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Query-for-exclude-words-in-a-raw-data/m-p/546697#M154985</link>
      <description>&lt;P&gt;Sorry&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;this is not working, based on this the alert triggers still "Kafka" included logs.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Apr 2021 10:57:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Query-for-exclude-words-in-a-raw-data/m-p/546697#M154985</guid>
      <dc:creator>phanichintha</dc:creator>
      <dc:date>2021-04-05T10:57:48Z</dc:date>
    </item>
    <item>
      <title>Re: Query for exclude words in a raw data</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Query-for-exclude-words-in-a-raw-data/m-p/546727#M154992</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/185959"&gt;@phanichintha&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;which trigger condition did you setted in your alert?&lt;/P&gt;&lt;P&gt;the correct one is: Number of results is equal to 0&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="gcusello_0-1617639930461.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/13611iA5143049D6CBB89B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="gcusello_0-1617639930461.png" alt="gcusello_0-1617639930461.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Apr 2021 16:25:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Query-for-exclude-words-in-a-raw-data/m-p/546727#M154992</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2021-04-05T16:25:54Z</dc:date>
    </item>
    <item>
      <title>Re: Query for exclude words in a raw data</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Query-for-exclude-words-in-a-raw-data/m-p/546784#M155011</link>
      <description>&lt;P&gt;Yes, I did the same what you suggested, but no luck. If you can share the zoom meeting, please let me know will discuss it live.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Apr 2021 04:20:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Query-for-exclude-words-in-a-raw-data/m-p/546784#M155011</guid>
      <dc:creator>phanichintha</dc:creator>
      <dc:date>2021-04-06T04:20:15Z</dc:date>
    </item>
    <item>
      <title>Re: Query for exclude words in a raw data</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Query-for-exclude-words-in-a-raw-data/m-p/546788#M155013</link>
      <description>&lt;P&gt;&amp;nbsp;T&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;: The application team&amp;nbsp;creates manually.&lt;/P&gt;&lt;P&gt;#: var/log/services.txt&lt;BR /&gt;services.txt file contains, below logs, it looks like this. These logs are ingested with Splunk. So based on this I can't able to correlate the file because of logs like this.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="phanichintha_0-1617685498176.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/13618i2038E94D895D3C0E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="phanichintha_0-1617685498176.png" alt="phanichintha_0-1617685498176.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Apr 2021 05:07:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Query-for-exclude-words-in-a-raw-data/m-p/546788#M155013</guid>
      <dc:creator>phanichintha</dc:creator>
      <dc:date>2021-04-06T05:07:46Z</dc:date>
    </item>
    <item>
      <title>Re: Query for exclude words in a raw data</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Query-for-exclude-words-in-a-raw-data/m-p/546789#M155014</link>
      <description>&lt;P&gt;I suspect the problem is that, based on your data, that your event contains 1...n of the processes that are present, so event 1 may contain&lt;/P&gt;&lt;P&gt;123 Kafka&lt;BR /&gt;345 Bootstrap&lt;BR /&gt;567 Jps&lt;/P&gt;&lt;P&gt;and you are trying to see if Jps OR Kafka OR Bootstrap OR other OR other are not present for a minute&lt;/P&gt;&lt;P&gt;I suggest you do the following&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Create a CSV lookup file with the list of the process names you are interested in, in a single column called process_name&lt;/LI&gt;&lt;LI&gt;Create a search that does something like&lt;/LI&gt;&lt;/UL&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;search&amp;gt; earliest=-6m@m latest=-1m@m
| rex field=_raw max_match=0 "(?&amp;lt;pid&amp;gt;\d+)\s(?&amp;lt;process_name&amp;gt;[\w\s]*)
| mvexpand process_name
| stats count by process_name
| append [
  | inputlookup append=t your_list_of_reqiured_processes
  | eval count = 0
]
| stats max(count) as count by process_name
| where count=0&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;This is extracting your PID/Process name from the _raw event (you will have to confirm that this creates a Splunk multivalue field with all the process names in it, per event).&lt;/P&gt;&lt;P&gt;Then it&amp;nbsp; expands all the process names to their separate events.&lt;/P&gt;&lt;P&gt;It then counts the occurrences of each process.&lt;/P&gt;&lt;P&gt;To then work out which ones are missing you just append your lookup file to the end of the results with a count of 0 and then look for the largest count value per process and if it's 0, you have your list.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Apr 2021 05:17:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Query-for-exclude-words-in-a-raw-data/m-p/546789#M155014</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2021-04-06T05:17:59Z</dc:date>
    </item>
    <item>
      <title>Re: Query for exclude words in a raw data</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Query-for-exclude-words-in-a-raw-data/m-p/546796#M155015</link>
      <description>&lt;P&gt;I created CSV like this:&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="phanichintha_0-1617688639524.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/13619iC7A4296F34B4012B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="phanichintha_0-1617688639524.png" alt="phanichintha_0-1617688639524.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Next created query like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="phanichintha_3-1617688780164.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/13622i6D20F40B291CD66C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="phanichintha_3-1617688780164.png" alt="phanichintha_3-1617688780164.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The process_names shows like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="phanichintha_4-1617688892262.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/13623iE61D5A4EEA4278E7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="phanichintha_4-1617688892262.png" alt="phanichintha_4-1617688892262.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Apr 2021 06:02:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Query-for-exclude-words-in-a-raw-data/m-p/546796#M155015</guid>
      <dc:creator>phanichintha</dc:creator>
      <dc:date>2021-04-06T06:02:18Z</dc:date>
    </item>
    <item>
      <title>Re: Query for exclude words in a raw data</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Query-for-exclude-words-in-a-raw-data/m-p/546841#M155025</link>
      <description>&lt;P&gt;OK, so the key is the rex statement and the regex that extracts the PID and process names from the _raw message.&lt;/P&gt;&lt;P&gt;Assuming there will be no space in the process name, then this should work&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex field=_raw max_match=0 "(?&amp;lt;pid&amp;gt;\d+)\s(?&amp;lt;process_name&amp;gt;[\w]*)\s?"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;which is saying extract&lt;/P&gt;&lt;P&gt;pid = sequence of digits&lt;/P&gt;&lt;P&gt;followed by a single whitespace&lt;/P&gt;&lt;P&gt;followed by&lt;/P&gt;&lt;P&gt;process_name = sequence of word characters followed by&lt;/P&gt;&lt;P&gt;optional whitespace&lt;/P&gt;&lt;P&gt;If you do a&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| table _raw pid process_name&lt;/LI-CODE&gt;&lt;P&gt;after the rex statement without the rest of the query, you can see what the rex is extracting. If that shows the pid and process names as multi values in the field then it's good and the rest of the query will work.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Apr 2021 10:43:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Query-for-exclude-words-in-a-raw-data/m-p/546841#M155025</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2021-04-06T10:43:31Z</dc:date>
    </item>
  </channel>
</rss>

