<?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: Need to extract JSESSIONID from result in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Need-to-extract-JSESSIONID-from-result/m-p/296857#M89551</link>
    <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="prod" "Null Pointer Exception" | rex "JSESSIONID\:(?&amp;lt;JSESSIONID&amp;gt;[^\.]+)"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 16 May 2017 18:24:36 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2017-05-16T18:24:36Z</dc:date>
    <item>
      <title>Need to extract JSESSIONID from result</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-to-extract-JSESSIONID-from-result/m-p/296856#M89550</link>
      <description>&lt;P&gt;Query: index="prod" "Null Pointer Exception"&lt;BR /&gt;
Result: Key: value, key; value, JSESSIONID:&lt;STRONG&gt;123456&lt;/STRONG&gt;.ATG.PROD, key: value&lt;/P&gt;

&lt;P&gt;How do I extract only the JSESSIONID from the result?&lt;/P&gt;</description>
      <pubDate>Tue, 16 May 2017 18:18:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-to-extract-JSESSIONID-from-result/m-p/296856#M89550</guid>
      <dc:creator>rh417692</dc:creator>
      <dc:date>2017-05-16T18:18:04Z</dc:date>
    </item>
    <item>
      <title>Re: Need to extract JSESSIONID from result</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-to-extract-JSESSIONID-from-result/m-p/296857#M89551</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="prod" "Null Pointer Exception" | rex "JSESSIONID\:(?&amp;lt;JSESSIONID&amp;gt;[^\.]+)"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 16 May 2017 18:24:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-to-extract-JSESSIONID-from-result/m-p/296857#M89551</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-05-16T18:24:36Z</dc:date>
    </item>
    <item>
      <title>Re: Need to extract JSESSIONID from result</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-to-extract-JSESSIONID-from-result/m-p/296858#M89552</link>
      <description>&lt;P&gt;Is there a way to capture unique JSESSIONID values?&lt;/P&gt;</description>
      <pubDate>Tue, 16 May 2017 18:30:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-to-extract-JSESSIONID-from-result/m-p/296858#M89552</guid>
      <dc:creator>rh417692</dc:creator>
      <dc:date>2017-05-16T18:30:33Z</dc:date>
    </item>
    <item>
      <title>Re: Need to extract JSESSIONID from result</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-to-extract-JSESSIONID-from-result/m-p/296859#M89553</link>
      <description>&lt;P&gt;Do you mean your search result should show one event per JSESSIONID? If yes, then use like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="prod" "Null Pointer Exception" | rex "JSESSIONID\:(?&amp;lt;JSESSIONID&amp;gt;[^\.]+)" | dedup JSESSIONID
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 16 May 2017 19:19:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-to-extract-JSESSIONID-from-result/m-p/296859#M89553</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-05-16T19:19:26Z</dc:date>
    </item>
    <item>
      <title>Re: Need to extract JSESSIONID from result</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-to-extract-JSESSIONID-from-result/m-p/296860#M89554</link>
      <description>&lt;P&gt;The 'dedup JSESSIONID' got me unique JSESSIONID values. Thank you @somesoni2 !&lt;/P&gt;</description>
      <pubDate>Tue, 16 May 2017 21:23:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-to-extract-JSESSIONID-from-result/m-p/296860#M89554</guid>
      <dc:creator>rh417692</dc:creator>
      <dc:date>2017-05-16T21:23:36Z</dc:date>
    </item>
    <item>
      <title>Re: Need to extract JSESSIONID from result</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-to-extract-JSESSIONID-from-result/m-p/296861#M89555</link>
      <description>&lt;P&gt;Do you mind explaining this part please: "JSESSIONID:(?[^.]+)" ? Does it mean to capture the value after the colon? If yes, and if there was a space after colon, would it have captured that too? How would you ignore the space after the colon?&lt;/P&gt;</description>
      <pubDate>Tue, 16 May 2017 21:25:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-to-extract-JSESSIONID-from-result/m-p/296861#M89555</guid>
      <dc:creator>rh417692</dc:creator>
      <dc:date>2017-05-16T21:25:19Z</dc:date>
    </item>
    <item>
      <title>Re: Need to extract JSESSIONID from result</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-to-extract-JSESSIONID-from-result/m-p/296862#M89556</link>
      <description>&lt;P&gt;It's basically everything between &lt;CODE&gt;JSESSIONID:&lt;/CODE&gt; and first occurance of dot.  It would capture that space as well. To ignore that try this. This will ignore space if present after colon (0 or more occurance of space)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rex "JSESSIONID\:\s*(?&amp;lt;JSESSIONID&amp;gt;[^\.]+)"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 16 May 2017 21:32:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-to-extract-JSESSIONID-from-result/m-p/296862#M89556</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-05-16T21:32:24Z</dc:date>
    </item>
  </channel>
</rss>

