<?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 extract the required keywords using REGEX in Splunk Enterprise</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-extract-the-required-keywords-using-REGEX/m-p/557511#M6251</link>
    <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/163730"&gt;@venkatasri&lt;/a&gt;&amp;nbsp;its not showing any results based on your query&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I tried: No output&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="phanichintha_0-1624940450781.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/14859iF38C80CC293533CB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="phanichintha_0-1624940450781.png" alt="phanichintha_0-1624940450781.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The output will be like this:&lt;BR /&gt;&lt;STRONG&gt;Search:&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;host="mules1" OR host="mules2" "nextFromDate for Ariba query set in s3 fromDateTimeUTC"&lt;BR /&gt;&lt;STRONG&gt;Output:&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="phanichintha_1-1624940739913.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/14860i315BA01A319318AC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="phanichintha_1-1624940739913.png" alt="phanichintha_1-1624940739913.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 29 Jun 2021 04:26:04 GMT</pubDate>
    <dc:creator>phanichintha</dc:creator>
    <dc:date>2021-06-29T04:26:04Z</dc:date>
    <item>
      <title>How to extract the required keywords using REGEX</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-extract-the-required-keywords-using-REGEX/m-p/557500#M6248</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;Log:&lt;/P&gt;&lt;P&gt;transactionId: NA, businesskey: GRNJob, environment: prod, flowName: app-report-grn-scheduler-flow, &lt;STRONG&gt;message: Computed Range for Aribus GRN Query&lt;/STRONG&gt; - {"viewTemplateName":"mcdonalds_Receipt_updatedRange",&lt;BR /&gt;"filters": {&lt;/P&gt;&lt;P&gt;Based on the above log, I need to search in any logs for the&amp;nbsp;&lt;STRONG&gt;message: "anything".&amp;nbsp;&lt;/STRONG&gt;Please help the regex to find out.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jun 2021 02:17:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-extract-the-required-keywords-using-REGEX/m-p/557500#M6248</guid>
      <dc:creator>phanichintha</dc:creator>
      <dc:date>2021-06-29T02:17:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract the required keywords using REGEX</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-extract-the-required-keywords-using-REGEX/m-p/557502#M6249</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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Based on your sample can you try following it extracts message: &amp;lt;value&amp;gt;, value to a field called message, which you can further use to filter events.&lt;/P&gt;&lt;P&gt;Note: Regex only works for combination of numbers, Alphabets, space and _&amp;nbsp;&lt;/P&gt;&lt;P&gt;From above sample value would be extracted as, message =&amp;nbsp; Computed Range for Aribus GRN Query&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=&amp;lt;your_index&amp;gt; sourcetype=&amp;lt;your_sourcetype&amp;gt;
| rex "message:(?&amp;lt;message&amp;gt;[\w\s]+)" 
| search message="&amp;lt;replace_it_with_string_you_want_to_search&amp;gt;"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;---&lt;/P&gt;&lt;P&gt;An upvote would be appreciated and Accept Solution if it helps!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jun 2021 02:27:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-extract-the-required-keywords-using-REGEX/m-p/557502#M6249</guid>
      <dc:creator>venkatasri</dc:creator>
      <dc:date>2021-06-29T02:27:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract the required keywords using REGEX</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-extract-the-required-keywords-using-REGEX/m-p/557511#M6251</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/163730"&gt;@venkatasri&lt;/a&gt;&amp;nbsp;its not showing any results based on your query&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I tried: No output&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="phanichintha_0-1624940450781.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/14859iF38C80CC293533CB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="phanichintha_0-1624940450781.png" alt="phanichintha_0-1624940450781.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The output will be like this:&lt;BR /&gt;&lt;STRONG&gt;Search:&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;host="mules1" OR host="mules2" "nextFromDate for Ariba query set in s3 fromDateTimeUTC"&lt;BR /&gt;&lt;STRONG&gt;Output:&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="phanichintha_1-1624940739913.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/14860i315BA01A319318AC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="phanichintha_1-1624940739913.png" alt="phanichintha_1-1624940739913.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jun 2021 04:26:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-extract-the-required-keywords-using-REGEX/m-p/557511#M6251</guid>
      <dc:creator>phanichintha</dc:creator>
      <dc:date>2021-06-29T04:26:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract the required keywords using REGEX</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-extract-the-required-keywords-using-REGEX/m-p/557515#M6252</link>
      <description>&lt;P&gt;Try replacing rex statement with&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;rex field=_raw "message:(?&amp;lt;message&amp;gt;[\w\s]+)" &lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 29 Jun 2021 04:49:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-extract-the-required-keywords-using-REGEX/m-p/557515#M6252</guid>
      <dc:creator>priyanka_231019</dc:creator>
      <dc:date>2021-06-29T04:49:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract the required keywords using REGEX</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-extract-the-required-keywords-using-REGEX/m-p/557517#M6253</link>
      <description>&lt;P&gt;I assume you are just looking for events with a match for "message:" followed by anything, not that you are trying to extract the "anything" into a field&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| regex "message:\s[\w\s]+"&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 29 Jun 2021 05:25:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-extract-the-required-keywords-using-REGEX/m-p/557517#M6253</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-06-29T05:25:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract the required keywords using REGEX</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-extract-the-required-keywords-using-REGEX/m-p/557521#M6254</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/47287"&gt;@priyanka_231019&lt;/a&gt;&amp;nbsp;no use showing nothing,&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="phanichintha_0-1624944375345.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/14861i6DE96B3EF94591CC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="phanichintha_0-1624944375345.png" alt="phanichintha_0-1624944375345.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="phanichintha_1-1624944421818.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/14862iC78840E00842846D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="phanichintha_1-1624944421818.png" alt="phanichintha_1-1624944421818.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jun 2021 05:27:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-extract-the-required-keywords-using-REGEX/m-p/557521#M6254</guid>
      <dc:creator>phanichintha</dc:creator>
      <dc:date>2021-06-29T05:27:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract the required keywords using REGEX</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-extract-the-required-keywords-using-REGEX/m-p/557526#M6255</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;as per our yesterday's discussion i got the exact results. So same like this in some of the events am not able to get like this the Message field is not taking up to extract while combining in Example 2.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Example 1: Perfect output&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;host="mules1" OR host="mules2"&lt;BR /&gt;Message="message: Start of Flow CreateUser flow" OR&lt;BR /&gt;Message="message: All system calls for CREATE user is completed" | stats count by Message&lt;BR /&gt;| transpose 0 header_field=Message&lt;BR /&gt;| eval Failures='message: Start of Flow CreateUser flow'-'message: All system calls for CREATE user is completed'&lt;BR /&gt;| transpose 0 column_name=message header_field=column&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="phanichintha_0-1624946046644.png" style="width: 692px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/14863i4B975D28A65AD957/image-dimensions/692x229?v=v2" width="692" height="229" role="button" title="phanichintha_0-1624946046644.png" alt="phanichintha_0-1624946046644.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Example 2: getting issue&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="phanichintha_1-1624946188391.png" style="width: 687px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/14864i3600F3FB83F7CD77/image-dimensions/687x177?v=v2" width="687" height="177" role="button" title="phanichintha_1-1624946188391.png" alt="phanichintha_1-1624946188391.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;but Individually showing events,&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="phanichintha_2-1624946248469.png" style="width: 724px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/14865i89B724E5313BEB70/image-dimensions/724x156?v=v2" width="724" height="156" role="button" title="phanichintha_2-1624946248469.png" alt="phanichintha_2-1624946248469.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="phanichintha_3-1624946288169.png" style="width: 721px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/14866i3F86F5600B56ACDB/image-dimensions/721x155?v=v2" width="721" height="155" role="button" title="phanichintha_3-1624946288169.png" alt="phanichintha_3-1624946288169.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jun 2021 05:58:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-extract-the-required-keywords-using-REGEX/m-p/557526#M6255</guid>
      <dc:creator>phanichintha</dc:creator>
      <dc:date>2021-06-29T05:58:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract the required keywords using REGEX</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-extract-the-required-keywords-using-REGEX/m-p/557527#M6256</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/185959"&gt;@phanichintha&lt;/a&gt;&amp;nbsp;Originally there was no space in sample can you try this ,&lt;/P&gt;&lt;P&gt;Try | search =*&lt;SPAN&gt;nextFromDate for Ariba* something like this with wildcard there could be extra spaces being extracted.&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=&amp;lt;your_index&amp;gt; sourcetype=&amp;lt;your_sourcetype&amp;gt;
| rex "message:\s+(?&amp;lt;message&amp;gt;[\w\s]+)" 
| search message="&amp;lt;replace_it_with_string_you_want_to_search&amp;gt;"
&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jun 2021 06:00:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-extract-the-required-keywords-using-REGEX/m-p/557527#M6256</guid>
      <dc:creator>venkatasri</dc:creator>
      <dc:date>2021-06-29T06:00:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract the required keywords using REGEX</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-extract-the-required-keywords-using-REGEX/m-p/557530#M6257</link>
      <description>&lt;P&gt;What events and what fields ar already extracted when you do this search?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;host="mules1" OR host="mules2" "nextFromDate for Ariba query set in s3 fromDateTimeUTC"&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 29 Jun 2021 06:11:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-extract-the-required-keywords-using-REGEX/m-p/557530#M6257</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-06-29T06:11:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract the required keywords using REGEX</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-extract-the-required-keywords-using-REGEX/m-p/557535#M6258</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;the events are related to "nextFromDate for Ariba query set in s3 fromDateTimeUTC" and the fields are below listed, in the files "Message" is extracted by me, based on that also some are not extracting under "Message" field.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="phanichintha_0-1624948220578.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/14869iD5FC1977219A8BF3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="phanichintha_0-1624948220578.png" alt="phanichintha_0-1624948220578.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jun 2021 06:32:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-extract-the-required-keywords-using-REGEX/m-p/557535#M6258</guid>
      <dc:creator>phanichintha</dc:creator>
      <dc:date>2021-06-29T06:32:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract the required keywords using REGEX</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-extract-the-required-keywords-using-REGEX/m-p/557549#M6261</link>
      <description>&lt;P&gt;Isn't that the issue - that that Message field extraction is not working for all your events?&lt;/P&gt;&lt;P&gt;Do you need to extract it in the search? Can you share your current extract configuration?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jun 2021 07:19:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-extract-the-required-keywords-using-REGEX/m-p/557549#M6261</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-06-29T07:19:37Z</dc:date>
    </item>
  </channel>
</rss>

