<?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: Field Extraction for Values with random keys in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Field-Extraction-for-Values-with-random-keys/m-p/158477#M44633</link>
    <description>&lt;P&gt;This works on your data set:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[a-zA-Z0-9-_]{22}
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 27 Nov 2013 16:32:04 GMT</pubDate>
    <dc:creator>lukejadamec</dc:creator>
    <dc:date>2013-11-27T16:32:04Z</dc:date>
    <item>
      <title>Field Extraction for Values with random keys</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Field-Extraction-for-Values-with-random-keys/m-p/158476#M44632</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;

&lt;P&gt;I am trying to extract a field named session_id (I have highlighted the fields in bold) from a log file, but there is no consistency with the position of the session_id. The only constant is the session_id is 22 characters, which is made up of numbers, letters, dashes and underscores. Below is a sample of the data, I have put X's through some of the data which is sensitive:&lt;/P&gt;

&lt;P&gt;2013/11/21-12:29:58.170 +0200: 10.12.149.120 5 LOGIN_FAIL &lt;A href="mailto:XXXXX@XXXXXX.com" target="_blank"&gt;XXXXX@XXXXXX.com&lt;/A&gt; XXXX:XXXTrader &lt;STRONG&gt;0XBFD2a5Kvaq3cD8wiCpLR&lt;/STRONG&gt; USER_UNKNOWN&lt;BR /&gt;
2013/11/21-12:29:58.101 +0200: 10.12.149.120 5 OPEN &lt;STRONG&gt;0XBFD2a5Kvaq3cD8wiCpLR&lt;/STRONG&gt;&lt;BR /&gt;
2013/11/21-12:29:49.945 +0200: 10.12.149.120 5 LOST - - &lt;STRONG&gt;0yzPsUSfepZMwfxOu2jQui&lt;/STRONG&gt; CLOSE_TYPE2&lt;BR /&gt;
2013/11/21-12:29:38.311 +0200: 10.12.149.120 3 CLOSE - XXXX:XXXTrader &lt;STRONG&gt;06EpEUOoz461hLCCeDe5qm&lt;/STRONG&gt; TIMEOUT&lt;BR /&gt;
2013/11/21-12:29:30.750 +0200: 10.12.149.120 5 OPEN &lt;STRONG&gt;0yzPsUSfepZMwfxOu2jQui&lt;/STRONG&gt;&lt;BR /&gt;
2013/11/21-12:29:28.244 +0200: 10.12.149.120 3 CLOSE - XXXX:XXXTrader &lt;STRONG&gt;0gbe7IlUDJJtVuSWWO4fIz&lt;/STRONG&gt; TIMEOUT&lt;BR /&gt;
2013/11/21-12:28:48.320 +0200: 10.12.149.120 3 LOGIN_FAIL &lt;A href="mailto:XXXX.XXXXXXXXXXX@XXXXXXXXXXXX.co.uk" target="_blank"&gt;XXXX.XXXXXXXXXXX@XXXXXXXXXXXX.co.uk&lt;/A&gt; XXXX:XXXTrader &lt;STRONG&gt;06EpEUOoz461hLCCeDe5qm&lt;/STRONG&gt; USER_UNKNOWN&lt;BR /&gt;
2013/11/21-08:46:20.305 +0200: 10.12.149.130 5 LOST &lt;A href="mailto:XXXX@XXXXXX.com" target="_blank"&gt;XXXX@XXXXXX.com&lt;/A&gt; XXXX:XXXTrader &lt;STRONG&gt;0nHzJadbf8pFzscVJIZUCO&lt;/STRONG&gt; CLOSE_TYPE2&lt;BR /&gt;
2013/11/21-08:44:20.708 +0200: 10.12.149.130 5 LOGIN_OK &lt;A href="mailto:XXXX@XXXXXX.com" target="_blank"&gt;XXXX@XXXXXX.com&lt;/A&gt; XXXX:XXXTrader &lt;STRONG&gt;0reFTR9TYqn1Id-LiXQPKz&lt;/STRONG&gt; LOGIN_OK &lt;/P&gt;

&lt;P&gt;I can write some regex that captures some of the session_id's, but my regex skills are not at a level to capture all of them.&lt;/P&gt;

&lt;P&gt;Any help would be greatly appreciated.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 15:22:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Field-Extraction-for-Values-with-random-keys/m-p/158476#M44632</guid>
      <dc:creator>mbrown_splunk</dc:creator>
      <dc:date>2020-09-28T15:22:40Z</dc:date>
    </item>
    <item>
      <title>Re: Field Extraction for Values with random keys</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Field-Extraction-for-Values-with-random-keys/m-p/158477#M44633</link>
      <description>&lt;P&gt;This works on your data set:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[a-zA-Z0-9-_]{22}
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 27 Nov 2013 16:32:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Field-Extraction-for-Values-with-random-keys/m-p/158477#M44633</guid>
      <dc:creator>lukejadamec</dc:creator>
      <dc:date>2013-11-27T16:32:04Z</dc:date>
    </item>
    <item>
      <title>Re: Field Extraction for Values with random keys</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Field-Extraction-for-Values-with-random-keys/m-p/158478#M44634</link>
      <description>&lt;P&gt;This worked a treat. Thank you very much.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Nov 2013 16:34:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Field-Extraction-for-Values-with-random-keys/m-p/158478#M44634</guid>
      <dc:creator>mbrown_splunk</dc:creator>
      <dc:date>2013-11-27T16:34:52Z</dc:date>
    </item>
  </channel>
</rss>

