<?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: extract a value from raw field in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/extract-a-value-from-raw-field/m-p/535557#M151365</link>
    <description>&lt;P&gt;That's easy to do with &lt;FONT face="courier new,courier"&gt;rex&lt;/FONT&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex "INFO (?&amp;lt;Info&amp;gt;\S+)"
| rex "SetID (?&amp;lt;SetID&amp;gt;\S+)"
| rex "Status (?&amp;lt;Status&amp;gt;)\w+)"
| rex "ContactID \[(?&amp;lt;ContactID&amp;gt;[^\]]+)"
| rex "CaseID \[(?&amp;lt;CaseID&amp;gt;[^\]]+)"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 12 Jan 2021 20:46:53 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2021-01-12T20:46:53Z</dc:date>
    <item>
      <title>extract a value from raw field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/extract-a-value-from-raw-field/m-p/535514#M151349</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;There is a way to extract a value from field even there is no = between Key and Value? After extracting I want to use them as a search criteria. Unfortunatelly I need to work with data which are not optimized for splunk.&lt;/P&gt;&lt;P&gt;For example : I have the following raw field:&lt;/P&gt;&lt;P&gt;"&lt;SPAN&gt;2020-12-16 13:39:00.7174 INFO 001d1764-80c3-4c35-87c7-ec25382b4328 IM_Contact with SetID Cardlink_DCDOB2012146196-1006 has current Status Completed. ContactID [CO-000085513778], CaseID [CA-000002980184] APOrchestrator.ProcessIncomingMessage =&amp;gt; ServiceQueueOrchestrator`2.LogContactStatus =&amp;gt; Logger.LogInfo&lt;/SPAN&gt;"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to extract following key / values:&lt;/P&gt;&lt;P&gt;Info =&amp;nbsp;&lt;SPAN&gt;001d1764-80c3-4c35-87c7-ec25382b4328&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;SetID =&amp;nbsp;Cardlink_DCDOB2012146196-1006&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Status = Completed&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;ContactID =&amp;nbsp;CO-000085513778&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;CaseID =&amp;nbsp;CA-000002980184&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Found some interesting answers but all of them working with real key value pairs (fields) as a basis.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jan 2021 17:00:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/extract-a-value-from-raw-field/m-p/535514#M151349</guid>
      <dc:creator>alexanderschlau</dc:creator>
      <dc:date>2021-01-12T17:00:06Z</dc:date>
    </item>
    <item>
      <title>Re: extract a value from raw field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/extract-a-value-from-raw-field/m-p/535557#M151365</link>
      <description>&lt;P&gt;That's easy to do with &lt;FONT face="courier new,courier"&gt;rex&lt;/FONT&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex "INFO (?&amp;lt;Info&amp;gt;\S+)"
| rex "SetID (?&amp;lt;SetID&amp;gt;\S+)"
| rex "Status (?&amp;lt;Status&amp;gt;)\w+)"
| rex "ContactID \[(?&amp;lt;ContactID&amp;gt;[^\]]+)"
| rex "CaseID \[(?&amp;lt;CaseID&amp;gt;[^\]]+)"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jan 2021 20:46:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/extract-a-value-from-raw-field/m-p/535557#M151365</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2021-01-12T20:46:53Z</dc:date>
    </item>
    <item>
      <title>Re: extract a value from raw field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/extract-a-value-from-raw-field/m-p/535618#M151390</link>
      <description>&lt;P&gt;great, so simple and works, thank&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jan 2021 08:34:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/extract-a-value-from-raw-field/m-p/535618#M151390</guid>
      <dc:creator>alexanderschlau</dc:creator>
      <dc:date>2021-01-13T08:34:15Z</dc:date>
    </item>
    <item>
      <title>Re: extract a value from raw field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/extract-a-value-from-raw-field/m-p/535620#M151392</link>
      <description>&lt;P&gt;I think there is a little change in&amp;nbsp;CaseID and&amp;nbsp;ContactID needed but I got the principle&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jan 2021 08:39:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/extract-a-value-from-raw-field/m-p/535620#M151392</guid>
      <dc:creator>alexanderschlau</dc:creator>
      <dc:date>2021-01-13T08:39:39Z</dc:date>
    </item>
    <item>
      <title>Re: extract a value from raw field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/extract-a-value-from-raw-field/m-p/535656#M151401</link>
      <description>&lt;P&gt;If your problem is resolved, then please click the "Accept as Solution" button to help future readers.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jan 2021 13:51:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/extract-a-value-from-raw-field/m-p/535656#M151401</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2021-01-13T13:51:17Z</dc:date>
    </item>
  </channel>
</rss>

