<?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 How to fetch unique session strings in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-fetch-unique-session-strings/m-p/151892#M42543</link>
    <description>&lt;P&gt;How can we get all unique session strings from log  which can contains all combinations of characters , symbols and digits, &lt;BR /&gt;
below are the examples of log. i want to target highlighted strings.  &lt;/P&gt;

&lt;P&gt;ERROR -  &lt;STRONG&gt;zrnGuiw32!1424968190354&lt;/STRONG&gt;   rrr19876055&lt;/P&gt;

&lt;P&gt;**** Error  &lt;STRONG&gt;_2zG4484222!-131990868&lt;/STRONG&gt;          gdffg19876055&lt;/P&gt;

&lt;P&gt;INFO  - &lt;STRONG&gt;2XH-s0aGm2!-1319620932!14267&lt;/STRONG&gt;    yyu9879tyuy&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Thu, 26 Feb 2015 16:53:14 GMT</pubDate>
    <dc:creator>rajasek</dc:creator>
    <dc:date>2015-02-26T16:53:14Z</dc:date>
    <item>
      <title>How to fetch unique session strings</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-fetch-unique-session-strings/m-p/151892#M42543</link>
      <description>&lt;P&gt;How can we get all unique session strings from log  which can contains all combinations of characters , symbols and digits, &lt;BR /&gt;
below are the examples of log. i want to target highlighted strings.  &lt;/P&gt;

&lt;P&gt;ERROR -  &lt;STRONG&gt;zrnGuiw32!1424968190354&lt;/STRONG&gt;   rrr19876055&lt;/P&gt;

&lt;P&gt;**** Error  &lt;STRONG&gt;_2zG4484222!-131990868&lt;/STRONG&gt;          gdffg19876055&lt;/P&gt;

&lt;P&gt;INFO  - &lt;STRONG&gt;2XH-s0aGm2!-1319620932!14267&lt;/STRONG&gt;    yyu9879tyuy&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 26 Feb 2015 16:53:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-fetch-unique-session-strings/m-p/151892#M42543</guid>
      <dc:creator>rajasek</dc:creator>
      <dc:date>2015-02-26T16:53:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to fetch unique session strings</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-fetch-unique-session-strings/m-p/151893#M42544</link>
      <description>&lt;P&gt;Are these full log entries OR you just posted a portion of it? &lt;BR /&gt;
If these are full log entries and if your unique session strings are always in 3rd position, then try something like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your base search | rex "^([^\s]+\s){2}(?&amp;lt;SessionString&amp;gt;[^\s]+)"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 27 Feb 2015 23:06:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-fetch-unique-session-strings/m-p/151893#M42544</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2015-02-27T23:06:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to fetch unique session strings</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-fetch-unique-session-strings/m-p/151894#M42545</link>
      <description>&lt;P&gt;&lt;STRONG&gt;somesoni2&lt;/STRONG&gt;'s example works great if it is always in the 3rd position. But if that is not the case, you may want additional options. If the session id's are the 2nd to the last fields on the line, then you can do this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your base search | rex "\s(?&amp;lt;SessionString&amp;gt;[^\s]+)\s+[^\s]+$"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;So much depends on seeing a complete set of representative examples. Hopefully these are really representative of the data.&lt;/P&gt;</description>
      <pubDate>Sat, 28 Feb 2015 00:46:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-fetch-unique-session-strings/m-p/151894#M42545</guid>
      <dc:creator>cpetterborg</dc:creator>
      <dc:date>2015-02-28T00:46:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to fetch unique session strings</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-fetch-unique-session-strings/m-p/151895#M42546</link>
      <description>&lt;P&gt;It worked for me. Thank you so much.&lt;BR /&gt;
No those are not full log entries, but the regex which you provided is worked &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Mar 2015 19:41:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-fetch-unique-session-strings/m-p/151895#M42546</guid>
      <dc:creator>rajasek</dc:creator>
      <dc:date>2015-03-02T19:41:20Z</dc:date>
    </item>
  </channel>
</rss>

