<?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: Regex help extracting session ID in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Regex-help-extracting-session-ID/m-p/450153#M127465</link>
    <description>&lt;P&gt;@jnudell_2 it gave me blanks in splunk..&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&lt;A href="https://regex101.com/r/vzbrqU/1" target="test_blank"&gt;https://regex101.com/r/vzbrqU/1&lt;/A&gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 26 Jun 2019 17:26:40 GMT</pubDate>
    <dc:creator>reverse</dc:creator>
    <dc:date>2019-06-26T17:26:40Z</dc:date>
    <item>
      <title>Regex help extracting session ID</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-help-extracting-session-ID/m-p/450150#M127462</link>
      <description>&lt;P&gt;10.249.68.17 0000*&lt;EM&gt;aJyyyQvMs5xIb7KGdRxRTl98AhhUNq0lMLQ8RQ8szjFp4gtHI:1cq4afaa&lt;/EM&gt;*7 12.119.53.11 - - [26/Jun/2019:13:06:37 -0400] "GET /xx/yy?REQUESTED_PAGE_ID=yy&amp;amp;REQUESTED_ACTION=xd&amp;amp;FWPOPUP=Y&amp;amp;displayMode=1&amp;amp;FLUSH_VARIABLE=YES&amp;amp;EDIT_FLAG=YES&amp;amp;CASE_NUM=6003378547&amp;amp;CASE_SEQ_NUM=6632579&amp;amp;ROW_COUNT=0&amp;amp;token=Random HTTP/1.1" 200 10855 dyrwasp026tw.ca.us:21152 &lt;/P&gt;

&lt;P&gt;10.247.68.23 0000*&lt;EM&gt;a0000eSP3bbdcJvjHUckwzlySRnx3t2V080oU-eoDEJlAqbIz0u2_Y:1cq4af5jb&lt;/EM&gt;* 17.119.53.11 - - [26/Jun/2019:13:06:37 -0400] "GET /xx/yy?REQUESTED_PAGE_ID=yy&amp;amp;REQUESTED_ACTION=xd&amp;amp;FWPOPUP=Y&amp;amp;displayMode=1&amp;amp;FLUSH_VARIABLE=YES&amp;amp;EDIT_FLAG=YES&amp;amp;CASE_NUM=6003378547&amp;amp;CASE_SEQ_NUM=6632579&amp;amp;ROW_COUNT=0&amp;amp;token=Random HTTP/1.1" 200 10855 dyrwasp026tw.ca.us:21152 &lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;aJyyyQvMs5xIb7KGdRxRTl98AhhUNq0lMLQ8RQ8szjFp4gtHI:1cq4afaa7&lt;BR /&gt;
a0000eSP3bbdcJvjHUckwzlySRnx3t2V080oU-eoDEJlAqbIz0u2_Y:1cq4af5jb&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;How do I extract the bold part session id always?&lt;BR /&gt;
Please help.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 01:06:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-help-extracting-session-ID/m-p/450150#M127462</guid>
      <dc:creator>reverse</dc:creator>
      <dc:date>2020-09-30T01:06:47Z</dc:date>
    </item>
    <item>
      <title>Re: Regex help extracting session ID</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-help-extracting-session-ID/m-p/450151#M127463</link>
      <description>&lt;P&gt;@jnudell_2  Please guide.&lt;/P&gt;

&lt;P&gt;@Vijeta Please guide.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jun 2019 17:15:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-help-extracting-session-ID/m-p/450151#M127463</guid>
      <dc:creator>reverse</dc:creator>
      <dc:date>2019-06-26T17:15:52Z</dc:date>
    </item>
    <item>
      <title>Re: Regex help extracting session ID</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-help-extracting-session-ID/m-p/450152#M127464</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/185961"&gt;@reverse&lt;/a&gt; &lt;BR /&gt;
You can try this regex:&lt;BR /&gt;
&lt;PRE&gt;... [ your search stuff ] ...&lt;BR /&gt;
| rex "^\S+\s+\d{4}\&lt;EM&gt;(?&amp;lt;session_id&amp;gt;[^\&lt;/EM&gt;]+)\*"&lt;/PRE&gt;&lt;/P&gt;

&lt;P&gt;Data without the asterisks (*):&lt;BR /&gt;
&lt;PRE&gt;... [ your search stuff ] ...&lt;BR /&gt;
| rex "^\S+\s+\d{4}(?&amp;lt;session_id&amp;gt;[a-zA-Z0-9-_]+:[a-zA-Z0-9]+)\s"&lt;/PRE&gt;&lt;/P&gt;

&lt;P&gt;If you know that the session id is &lt;EM&gt;ALWAYS&lt;/EM&gt; preceded by four 0's, I would use this instead:&lt;BR /&gt;
&lt;PRE&gt;... [ your search stuff ] ...&lt;BR /&gt;
| rex "^\S+\s+0000(?&amp;lt;session_id&amp;gt;[a-zA-Z0-9-_]+:[a-zA-Z0-9]+)\s"&lt;/PRE&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 01:03:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-help-extracting-session-ID/m-p/450152#M127464</guid>
      <dc:creator>jnudell_2</dc:creator>
      <dc:date>2020-09-30T01:03:57Z</dc:date>
    </item>
    <item>
      <title>Re: Regex help extracting session ID</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-help-extracting-session-ID/m-p/450153#M127465</link>
      <description>&lt;P&gt;@jnudell_2 it gave me blanks in splunk..&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&lt;A href="https://regex101.com/r/vzbrqU/1" target="test_blank"&gt;https://regex101.com/r/vzbrqU/1&lt;/A&gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 26 Jun 2019 17:26:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-help-extracting-session-ID/m-p/450153#M127465</guid>
      <dc:creator>reverse</dc:creator>
      <dc:date>2019-06-26T17:26:40Z</dc:date>
    </item>
    <item>
      <title>Re: Regex help extracting session ID</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-help-extracting-session-ID/m-p/450154#M127466</link>
      <description>&lt;P&gt;&lt;A href="https://regex101.com/r/vzbrqU/2"&gt;https://regex101.com/r/vzbrqU/2&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jun 2019 17:28:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-help-extracting-session-ID/m-p/450154#M127466</guid>
      <dc:creator>reverse</dc:creator>
      <dc:date>2019-06-26T17:28:09Z</dc:date>
    </item>
    <item>
      <title>Re: Regex help extracting session ID</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-help-extracting-session-ID/m-p/450155#M127467</link>
      <description>&lt;P&gt;@reverse Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;rex field=_raw  "\d{2}.\d{3}.\d{2}.\d{2} 0000\*(?&amp;lt;id&amp;gt;\S+)\*"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 26 Jun 2019 17:45:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-help-extracting-session-ID/m-p/450155#M127467</guid>
      <dc:creator>Vijeta</dc:creator>
      <dc:date>2019-06-26T17:45:47Z</dc:date>
    </item>
    <item>
      <title>Re: Regex help extracting session ID</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-help-extracting-session-ID/m-p/450156#M127468</link>
      <description>&lt;P&gt;hey @Vijeta thanks but no luck ..&lt;BR /&gt;
Please see here&lt;BR /&gt;
&lt;A href="https://regex101.com/r/vzbrqU/3"&gt;https://regex101.com/r/vzbrqU/3&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jun 2019 17:55:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-help-extracting-session-ID/m-p/450156#M127468</guid>
      <dc:creator>reverse</dc:creator>
      <dc:date>2019-06-26T17:55:13Z</dc:date>
    </item>
    <item>
      <title>Re: Regex help extracting session ID</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-help-extracting-session-ID/m-p/450157#M127469</link>
      <description>&lt;P&gt;@reverse try the following rex command and confirm:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rex "^[^\s]+\s(?&amp;lt;session_id&amp;gt;[^\s]+)\s"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 26 Jun 2019 18:02:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-help-extracting-session-ID/m-p/450157#M127469</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2019-06-26T18:02:59Z</dc:date>
    </item>
    <item>
      <title>Re: Regex help extracting session ID</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-help-extracting-session-ID/m-p/450158#M127470</link>
      <description>&lt;P&gt;Thanks @niketnilay   .. but did not work ..&lt;BR /&gt;
Please see here &lt;BR /&gt;
    regexr.com/4ggc2&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jun 2019 18:07:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-help-extracting-session-ID/m-p/450158#M127470</guid>
      <dc:creator>reverse</dc:creator>
      <dc:date>2019-06-26T18:07:55Z</dc:date>
    </item>
    <item>
      <title>Re: Regex help extracting session ID</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-help-extracting-session-ID/m-p/450159#M127471</link>
      <description>&lt;P&gt;Your sample included asterisk symbols, and your regex sample does not.  If there are no asterisk symbols you would use a different regex.  I have updated the answer.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jun 2019 18:47:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-help-extracting-session-ID/m-p/450159#M127471</guid>
      <dc:creator>jnudell_2</dc:creator>
      <dc:date>2019-06-26T18:47:33Z</dc:date>
    </item>
    <item>
      <title>Re: Regex help extracting session ID</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-help-extracting-session-ID/m-p/450160#M127472</link>
      <description>&lt;P&gt;@jnudell_2 I was trying to make it bold for highlighting purposes .. apologies for the confusion..&lt;BR /&gt;
it appears that your answer is not updated..&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jun 2019 18:54:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-help-extracting-session-ID/m-p/450160#M127472</guid>
      <dc:creator>reverse</dc:creator>
      <dc:date>2019-06-26T18:54:02Z</dc:date>
    </item>
    <item>
      <title>Re: Regex help extracting session ID</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-help-extracting-session-ID/m-p/450161#M127473</link>
      <description>&lt;P&gt;Thanks a ton Sir&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jun 2019 18:58:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-help-extracting-session-ID/m-p/450161#M127473</guid>
      <dc:creator>reverse</dc:creator>
      <dc:date>2019-06-26T18:58:34Z</dc:date>
    </item>
    <item>
      <title>Re: Regex help extracting session ID</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-help-extracting-session-ID/m-p/450162#M127474</link>
      <description>&lt;P&gt;Worked like a Charm ...Many thanks again! @jnudell_2 &lt;/P&gt;</description>
      <pubDate>Wed, 26 Jun 2019 19:03:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-help-extracting-session-ID/m-p/450162#M127474</guid>
      <dc:creator>reverse</dc:creator>
      <dc:date>2019-06-26T19:03:00Z</dc:date>
    </item>
  </channel>
</rss>

