<?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 a particular string from the event logs in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-particular-string-from-the-event-logs/m-p/570043#M198686</link>
    <description>&lt;P&gt;Please check the attached screenshot&lt;/P&gt;</description>
    <pubDate>Thu, 07 Oct 2021 12:08:20 GMT</pubDate>
    <dc:creator>kumarnis45</dc:creator>
    <dc:date>2021-10-07T12:08:20Z</dc:date>
    <item>
      <title>How to extract a particular string from the event logs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-particular-string-from-the-event-logs/m-p/569927#M198641</link>
      <description>&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; I have a scenario where i need to extract the file name from the event logs. The Event log first line looks like below.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Event Log:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;SPAN class="t"&gt;INFO&lt;/SPAN&gt;&lt;SPAN&gt;] &lt;/SPAN&gt;&lt;SPAN class="t"&gt;2021-09-30T00:04:17.052Z&lt;/SPAN&gt; &lt;SPAN class="t"&gt;8d5eb00a-d033-49a9-9d0f-c61011e4ae51&lt;/SPAN&gt;&lt;SPAN&gt; {"&lt;/SPAN&gt;&lt;SPAN class="t"&gt;Records&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class="t"&gt;:&lt;/SPAN&gt;&lt;SPAN&gt; [{"&lt;/SPAN&gt;&lt;SPAN class="t"&gt;eventVersion&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class="t"&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;}]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Now i need to write a rex query to extract the file name "&lt;SPAN class="t"&gt;&lt;STRONG&gt;8d5eb00a-d033-49a9-9d0f-c61011e4ae51&lt;/STRONG&gt;" from above event log. This file name changes for the every search query along with the timestamp.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="t"&gt;Can someone suggest me how to resolve this?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="t"&gt;Thanks.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Oct 2021 17:21:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-particular-string-from-the-event-logs/m-p/569927#M198641</guid>
      <dc:creator>kumarnis45</dc:creator>
      <dc:date>2021-10-06T17:21:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract a particular string from the event logs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-particular-string-from-the-event-logs/m-p/569937#M198645</link>
      <description>&lt;LI-CODE lang="markup"&gt;| rex "\[INFO\]\s\S+\s(?&amp;lt;filename&amp;gt;\S+)\s"&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 06 Oct 2021 18:18:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-particular-string-from-the-event-logs/m-p/569937#M198645</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-10-06T18:18:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract a particular string from the event logs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-particular-string-from-the-event-logs/m-p/569938#M198646</link>
      <description>&lt;P&gt;See if this helps.&amp;nbsp; It looks for the milliseconds in the timestamp, a time zone indicator, and some white space then takes everything up to the next white space to be the file name.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;... | rex "\.\d{3}\w+\s(?&amp;lt;filename&amp;gt;\S+)"&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 06 Oct 2021 18:22:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-particular-string-from-the-event-logs/m-p/569938#M198646</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2021-10-06T18:22:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract a particular string from the event logs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-particular-string-from-the-event-logs/m-p/569941#M198648</link>
      <description>&lt;P&gt;I have tried it as you suggested. But its returning the same result as before.&amp;nbsp; I have pasted the logs below. I have to remove the timestamp and return the just &lt;STRONG&gt;12345 &lt;/STRONG&gt;as the output.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Logs are:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;SPAN class="t"&gt;INFO&lt;/SPAN&gt;&lt;SPAN&gt;] &lt;/SPAN&gt;&lt;SPAN class="t"&gt;2021-10-02T00:09:50.398Z&lt;/SPAN&gt;&lt;STRONG&gt;&amp;nbsp;12345&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;{"&lt;/SPAN&gt;&lt;SPAN class="t"&gt;Records&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class="t"&gt;:&lt;/SPAN&gt;&lt;SPAN&gt; [{"&lt;/SPAN&gt;&lt;SPAN class="t"&gt;eventVersion&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class="t"&gt;:&lt;/SPAN&gt;&lt;SPAN&gt; "&lt;/SPAN&gt;&lt;SPAN class="t"&gt;2.1&lt;/SPAN&gt;&lt;SPAN&gt;", "&lt;/SPAN&gt;&lt;SPAN class="t"&gt;eventSource&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class="t"&gt;:&lt;/SPAN&gt;&lt;SPAN&gt; "&lt;/SPAN&gt;&lt;SPAN class="t h"&gt;&lt;SPAN class="t"&gt;aws&lt;/SPAN&gt;:&lt;SPAN class="t"&gt;s3&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;", "&lt;/SPAN&gt;&lt;SPAN class="t"&gt;awsRegion&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class="t"&gt;:&lt;/SPAN&gt;&lt;SPAN&gt; "&lt;/SPAN&gt;&lt;SPAN class="t"&gt;us-east-1&lt;/SPAN&gt;&lt;SPAN&gt;", "&lt;/SPAN&gt;&lt;SPAN class="t"&gt;eventTime&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class="t"&gt;:&lt;/SPAN&gt;&lt;SPAN&gt; "&lt;/SPAN&gt;&lt;SPAN class="t"&gt;2021-10-02T00:09:42.743Z&lt;/SPAN&gt;&lt;SPAN&gt;", "&lt;/SPAN&gt;&lt;SPAN class="t"&gt;eventName&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class="t"&gt;:&lt;/SPAN&gt;&lt;SPAN&gt; "&lt;/SPAN&gt;&lt;SPAN class="t"&gt;ObjectCreated:Put&lt;/SPAN&gt;&lt;SPAN&gt;", "&lt;/SPAN&gt;&lt;SPAN class="t"&gt;userIdentity&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class="t"&gt;:&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Oct 2021 18:43:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-particular-string-from-the-event-logs/m-p/569941#M198648</guid>
      <dc:creator>kumarnis45</dc:creator>
      <dc:date>2021-10-06T18:43:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract a particular string from the event logs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-particular-string-from-the-event-logs/m-p/569942#M198649</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried it as you suggested. But its returning the same result as before.&amp;nbsp; I have pasted the logs below. I have to remove the timestamp and return the just &lt;STRONG&gt;12345 &lt;/STRONG&gt;as the output.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Logs are:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;SPAN class="t"&gt;INFO&lt;/SPAN&gt;&lt;SPAN&gt;] &lt;/SPAN&gt;&lt;SPAN class="t"&gt;2021-10-02T00:09:50.398Z&lt;/SPAN&gt;&lt;STRONG&gt;&amp;nbsp;12345&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;{"&lt;/SPAN&gt;&lt;SPAN class="t"&gt;Records&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class="t"&gt;:&lt;/SPAN&gt;&lt;SPAN&gt; [{"&lt;/SPAN&gt;&lt;SPAN class="t"&gt;eventVersion&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class="t"&gt;:&lt;/SPAN&gt;&lt;SPAN&gt; "&lt;/SPAN&gt;&lt;SPAN class="t"&gt;2.1&lt;/SPAN&gt;&lt;SPAN&gt;", "&lt;/SPAN&gt;&lt;SPAN class="t"&gt;eventSource&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class="t"&gt;:&lt;/SPAN&gt;&lt;SPAN&gt; "&lt;/SPAN&gt;&lt;SPAN class="t h"&gt;&lt;SPAN class="t"&gt;aws&lt;/SPAN&gt;:&lt;SPAN class="t"&gt;s3&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;", "&lt;/SPAN&gt;&lt;SPAN class="t"&gt;awsRegion&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class="t"&gt;:&lt;/SPAN&gt;&lt;SPAN&gt; "&lt;/SPAN&gt;&lt;SPAN class="t"&gt;us-east-1&lt;/SPAN&gt;&lt;SPAN&gt;", "&lt;/SPAN&gt;&lt;SPAN class="t"&gt;eventTime&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class="t"&gt;:&lt;/SPAN&gt;&lt;SPAN&gt; "&lt;/SPAN&gt;&lt;SPAN class="t"&gt;2021-10-02T00:09:42.743Z&lt;/SPAN&gt;&lt;SPAN&gt;", "&lt;/SPAN&gt;&lt;SPAN class="t"&gt;eventName&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class="t"&gt;:&lt;/SPAN&gt;&lt;SPAN&gt; "&lt;/SPAN&gt;&lt;SPAN class="t"&gt;ObjectCreated:Put&lt;/SPAN&gt;&lt;SPAN&gt;", "&lt;/SPAN&gt;&lt;SPAN class="t"&gt;userIdentity&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class="t"&gt;:&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Oct 2021 18:43:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-particular-string-from-the-event-logs/m-p/569942#M198649</guid>
      <dc:creator>kumarnis45</dc:creator>
      <dc:date>2021-10-06T18:43:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract a particular string from the event logs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-particular-string-from-the-event-logs/m-p/569944#M198650</link>
      <description>&lt;P&gt;My query works in regex101.com with both of your sample events.&amp;nbsp; If it's not working for you then we need more information.&amp;nbsp; Please share the full query you are using to extract the string.&amp;nbsp; What is the result (the OP didn't say)?&lt;/P&gt;</description>
      <pubDate>Wed, 06 Oct 2021 18:53:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-particular-string-from-the-event-logs/m-p/569944#M198650</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2021-10-06T18:53:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract a particular string from the event logs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-particular-string-from-the-event-logs/m-p/569945#M198651</link>
      <description>&lt;P&gt;the full query is looks like below:&lt;/P&gt;&lt;P&gt;I am looking for source lambda logs with a json file to return a reqid.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;source=/aws/lambda/sample test.json | rex "\.\d{3}\w+\s(?&amp;lt;file&amp;gt;\S+)"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In log events it returns a reqid '&lt;STRONG&gt;12345&lt;/STRONG&gt;' as below. There is some space after timestamp and after reqid.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Logs are:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;SPAN class="t"&gt;INFO&lt;/SPAN&gt;&lt;SPAN&gt;]&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="t"&gt;2021-10-02T00:09:50.398Z&lt;/SPAN&gt;&lt;STRONG&gt;&amp;nbsp;12345&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;{"&lt;/SPAN&gt;&lt;SPAN class="t"&gt;Records&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class="t"&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;[{"&lt;/SPAN&gt;&lt;SPAN class="t"&gt;eventVersion&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class="t"&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;"&lt;/SPAN&gt;&lt;SPAN class="t"&gt;2.1&lt;/SPAN&gt;&lt;SPAN&gt;", "&lt;/SPAN&gt;&lt;SPAN class="t"&gt;eventSource&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class="t"&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;"&lt;/SPAN&gt;&lt;SPAN class="t h"&gt;&lt;SPAN class="t"&gt;aws&lt;/SPAN&gt;:&lt;SPAN class="t"&gt;s3&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;", "&lt;/SPAN&gt;&lt;SPAN class="t"&gt;awsRegion&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class="t"&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;"&lt;/SPAN&gt;&lt;SPAN class="t"&gt;us-east-1&lt;/SPAN&gt;&lt;SPAN&gt;", "&lt;/SPAN&gt;&lt;SPAN class="t"&gt;eventTime&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class="t"&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;"&lt;/SPAN&gt;&lt;SPAN class="t"&gt;2021-10-02T00:09:42.743Z&lt;/SPAN&gt;&lt;SPAN&gt;", "&lt;/SPAN&gt;&lt;SPAN class="t"&gt;eventName&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class="t"&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;"&lt;/SPAN&gt;&lt;SPAN class="t"&gt;ObjectCreated:Put&lt;/SPAN&gt;&lt;SPAN&gt;", "&lt;/SPAN&gt;&lt;SPAN class="t"&gt;userIdentity&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class="t"&gt;:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this is clear now. let me know if i need to add extra details&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Oct 2021 19:15:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-particular-string-from-the-event-logs/m-p/569945#M198651</guid>
      <dc:creator>kumarnis45</dc:creator>
      <dc:date>2021-10-06T19:15:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract a particular string from the event logs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-particular-string-from-the-event-logs/m-p/569947#M198653</link>
      <description>&lt;P&gt;Based on the latest response and the OP, it appears the two regular expressions provided do what was asked.&lt;/P&gt;&lt;P&gt;Please explain how "12345" is not what is needed then tell us what &lt;STRONG&gt;is&lt;/STRONG&gt; needed from each event.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Oct 2021 19:29:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-particular-string-from-the-event-logs/m-p/569947#M198653</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2021-10-06T19:29:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract a particular string from the event logs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-particular-string-from-the-event-logs/m-p/569948#M198654</link>
      <description>&lt;P&gt;&lt;STRONG&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;source=/aws/lambda/sample test.json&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;source=/aws/lambda/sample test.json | rex "\.\d{3}\w+\s(?&amp;lt;file&amp;gt;\S+)"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Both the above commands returning the same result as below.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Logs are:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;SPAN class="t"&gt;INFO&lt;/SPAN&gt;&lt;SPAN&gt;]&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="t"&gt;2021-10-02T00:09:50.398Z&lt;/SPAN&gt;&lt;STRONG&gt;&amp;nbsp;12345&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;{"&lt;/SPAN&gt;&lt;SPAN class="t"&gt;Records&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class="t"&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;[{"&lt;/SPAN&gt;&lt;SPAN class="t"&gt;eventVersion&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class="t"&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;"&lt;/SPAN&gt;&lt;SPAN class="t"&gt;2.1&lt;/SPAN&gt;&lt;SPAN&gt;", "&lt;/SPAN&gt;&lt;SPAN class="t"&gt;eventSource&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class="t"&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;"&lt;/SPAN&gt;&lt;SPAN class="t h"&gt;&lt;SPAN class="t"&gt;aws&lt;/SPAN&gt;:&lt;SPAN class="t"&gt;s3&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;", "&lt;/SPAN&gt;&lt;SPAN class="t"&gt;awsRegion&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class="t"&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;"&lt;/SPAN&gt;&lt;SPAN class="t"&gt;us-east-1&lt;/SPAN&gt;&lt;SPAN&gt;", "&lt;/SPAN&gt;&lt;SPAN class="t"&gt;eventTime&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class="t"&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;"&lt;/SPAN&gt;&lt;SPAN class="t"&gt;2021-10-02T00:09:42.743Z&lt;/SPAN&gt;&lt;SPAN&gt;", "&lt;/SPAN&gt;&lt;SPAN class="t"&gt;eventName&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class="t"&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;"&lt;/SPAN&gt;&lt;SPAN class="t"&gt;ObjectCreated:Put&lt;/SPAN&gt;&lt;SPAN&gt;", "&lt;/SPAN&gt;&lt;SPAN class="t"&gt;userIdentity&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class="t"&gt;:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Adding the &lt;STRONG&gt;rex&lt;/STRONG&gt; to &lt;STRONG&gt;extract&lt;/STRONG&gt;&amp;nbsp;and &lt;STRONG&gt;display&lt;/STRONG&gt; the '&lt;STRONG&gt;12345&lt;/STRONG&gt;' not working in my scenario. do wee need to update rex command?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Oct 2021 19:35:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-particular-string-from-the-event-logs/m-p/569948#M198654</guid>
      <dc:creator>kumarnis45</dc:creator>
      <dc:date>2021-10-06T19:35:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract a particular string from the event logs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-particular-string-from-the-event-logs/m-p/569965#M198667</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;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;I still couldn't figure it out to get this work. Tried using rex with different possibilities but none of them are working. can you please suggest a better solution?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Oct 2021 22:57:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-particular-string-from-the-event-logs/m-p/569965#M198667</guid>
      <dc:creator>kumarnis45</dc:creator>
      <dc:date>2021-10-06T22:57:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract a particular string from the event logs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-particular-string-from-the-event-logs/m-p/569985#M198673</link>
      <description>&lt;P&gt;What exactly do you get when you use the command suggested?&lt;/P&gt;&lt;P&gt;Don't forget, the only information we have is what you post! The more information you can give us, the easier it will be for us to help.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Oct 2021 06:43:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-particular-string-from-the-event-logs/m-p/569985#M198673</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-10-07T06:43:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract a particular string from the event logs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-particular-string-from-the-event-logs/m-p/570043#M198686</link>
      <description>&lt;P&gt;Please check the attached screenshot&lt;/P&gt;</description>
      <pubDate>Thu, 07 Oct 2021 12:08:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-particular-string-from-the-event-logs/m-p/570043#M198686</guid>
      <dc:creator>kumarnis45</dc:creator>
      <dc:date>2021-10-07T12:08:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract a particular string from the event logs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-particular-string-from-the-event-logs/m-p/570047#M198687</link>
      <description>&lt;P&gt;please check the attached picture. It has the command you suggested me to run with the OP&lt;/P&gt;</description>
      <pubDate>Thu, 07 Oct 2021 12:15:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-particular-string-from-the-event-logs/m-p/570047#M198687</guid>
      <dc:creator>kumarnis45</dc:creator>
      <dc:date>2021-10-07T12:15:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract a particular string from the event logs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-particular-string-from-the-event-logs/m-p/570048#M198688</link>
      <description>&lt;P&gt;It looks like you have multiple white spaces - try this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex "\[INFO\]\s+\S+\s+(?&amp;lt;filename&amp;gt;\S+)\s"&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 07 Oct 2021 12:15:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-particular-string-from-the-event-logs/m-p/570048#M198688</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-10-07T12:15:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract a particular string from the event logs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-particular-string-from-the-event-logs/m-p/570050#M198689</link>
      <description>&lt;P&gt;Not working though. Returning the same result&lt;/P&gt;</description>
      <pubDate>Thu, 07 Oct 2021 12:22:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-particular-string-from-the-event-logs/m-p/570050#M198689</guid>
      <dc:creator>kumarnis45</dc:creator>
      <dc:date>2021-10-07T12:22:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract a particular string from the event logs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-particular-string-from-the-event-logs/m-p/570051#M198690</link>
      <description>&lt;P&gt;As &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;said, there appears to be more than one space between the timestamp and the regid.&amp;nbsp; Try this command.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;... | rex "\.\d{3}\w+\s+(?&amp;lt;file&amp;gt;\S+)"&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 07 Oct 2021 12:22:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-particular-string-from-the-event-logs/m-p/570051#M198690</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2021-10-07T12:22:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract a particular string from the event logs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-particular-string-from-the-event-logs/m-p/570073#M198700</link>
      <description>&lt;P&gt;This is working. adding |&amp;nbsp;table filename after rex fixed it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;| rex "\[INFO\]\s+\S+\s+(?&amp;lt;filename&amp;gt;\S+)\s" | table filename&lt;/P&gt;</description>
      <pubDate>Thu, 07 Oct 2021 14:13:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-a-particular-string-from-the-event-logs/m-p/570073#M198700</guid>
      <dc:creator>kumarnis45</dc:creator>
      <dc:date>2021-10-07T14:13:38Z</dc:date>
    </item>
  </channel>
</rss>

