<?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: How to Extract Values from a KV within a event log in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-Extract-Values-from-a-KV-within-a-event-log/m-p/423685#M173416</link>
    <description>&lt;P&gt;Hi @vickyvishwa&lt;/P&gt;

&lt;P&gt;Please Try&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults 
| eval log=" [INFO ] 2019-01-24T04:09:20,513 [thread=framework1234] className=DummyConsumer - {} - {topic=events-1, timestamp=12233344433, timestampType=CREATE_TIME, value={msg_id=bdb95851-1fd0-11e9-a1b3-yhgt6465783gh, ip=127.0.0.1, timestamp=2019-01-24 04:08:50.0}, logMessage=Event Processed, failure=F}" 
| rex field=log "ip=(?P&amp;lt;ip&amp;gt;.*),\stimestamp=(?P&amp;lt;timestamp&amp;gt;.*)}," 
| table ip,timestamp
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 24 Jan 2019 13:50:38 GMT</pubDate>
    <dc:creator>vnravikumar</dc:creator>
    <dc:date>2019-01-24T13:50:38Z</dc:date>
    <item>
      <title>How to Extract Values from a KV within a event log</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-Extract-Values-from-a-KV-within-a-event-log/m-p/423683#M173414</link>
      <description>&lt;P&gt;I have the below log event. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[INFO ] 2019-01-24T04:09:20,513 [thread=framework1234] className=DummyConsumer - {} - {topic=events-1, timestamp=12233344433, timestampType=CREATE_TIME, value={msg_id=bdb95851-1fd0-11e9-a1b3-yhgt6465783gh, ip=127.0.0.1, timestamp=2019-01-24 04:08:50.0}, logMessage=Event Processed, failure=F}
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I have to extract &lt;STRONG&gt;timestamp&lt;/STRONG&gt; and &lt;STRONG&gt;ip&lt;/STRONG&gt; both of them inside &lt;STRONG&gt;value&lt;/STRONG&gt; key. What is the best way to do that. I tried multiple extract commands nothing works (or probably I am doing wrong).&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jan 2019 13:14:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-Extract-Values-from-a-KV-within-a-event-log/m-p/423683#M173414</guid>
      <dc:creator>vickyvishwa</dc:creator>
      <dc:date>2019-01-24T13:14:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to Extract Values from a KV within a event log</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-Extract-Values-from-a-KV-within-a-event-log/m-p/423684#M173415</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Please try below regex, this will extract values in two fields &lt;CODE&gt;timestamp&lt;/CODE&gt; and &lt;CODE&gt;ip&lt;/CODE&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;yourBasesearch&amp;gt; | rex field=_raw "ip=(?&amp;lt;ip&amp;gt;\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})\,\stimestamp=(?&amp;lt;timestamp&amp;gt;[^}]*)"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 24 Jan 2019 13:48:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-Extract-Values-from-a-KV-within-a-event-log/m-p/423684#M173415</guid>
      <dc:creator>harsmarvania57</dc:creator>
      <dc:date>2019-01-24T13:48:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to Extract Values from a KV within a event log</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-Extract-Values-from-a-KV-within-a-event-log/m-p/423685#M173416</link>
      <description>&lt;P&gt;Hi @vickyvishwa&lt;/P&gt;

&lt;P&gt;Please Try&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults 
| eval log=" [INFO ] 2019-01-24T04:09:20,513 [thread=framework1234] className=DummyConsumer - {} - {topic=events-1, timestamp=12233344433, timestampType=CREATE_TIME, value={msg_id=bdb95851-1fd0-11e9-a1b3-yhgt6465783gh, ip=127.0.0.1, timestamp=2019-01-24 04:08:50.0}, logMessage=Event Processed, failure=F}" 
| rex field=log "ip=(?P&amp;lt;ip&amp;gt;.*),\stimestamp=(?P&amp;lt;timestamp&amp;gt;.*)}," 
| table ip,timestamp
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 24 Jan 2019 13:50:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-Extract-Values-from-a-KV-within-a-event-log/m-p/423685#M173416</guid>
      <dc:creator>vnravikumar</dc:creator>
      <dc:date>2019-01-24T13:50:38Z</dc:date>
    </item>
  </channel>
</rss>

