<?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 field extraction in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/field-extraction/m-p/257099#M76988</link>
    <description>&lt;P&gt;I have a data in the format&lt;/P&gt;

&lt;P&gt;index = abc  earliest =-10d when i run get results in teh format of string&lt;BR /&gt;
result set events&lt;BR /&gt;
data:  {"Ts":1485478049000,"Off":-6,"Term":"ABCD1234","Msg":"ABCDSDfaafafsomestring value","Ip":"someipnumber"} &lt;/P&gt;

&lt;P&gt;I want to extract values of Termm,Msg, &amp;amp;ip value&lt;/P&gt;

&lt;P&gt;I have tried using field extraction but having issues I want to get through regex or rex, Can you pls let me know how can i get  values into fields like ip, Msg &amp;amp; Term&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Sun, 29 Jan 2017 20:15:33 GMT</pubDate>
    <dc:creator>msachdeva3</dc:creator>
    <dc:date>2017-01-29T20:15:33Z</dc:date>
    <item>
      <title>field extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/field-extraction/m-p/257099#M76988</link>
      <description>&lt;P&gt;I have a data in the format&lt;/P&gt;

&lt;P&gt;index = abc  earliest =-10d when i run get results in teh format of string&lt;BR /&gt;
result set events&lt;BR /&gt;
data:  {"Ts":1485478049000,"Off":-6,"Term":"ABCD1234","Msg":"ABCDSDfaafafsomestring value","Ip":"someipnumber"} &lt;/P&gt;

&lt;P&gt;I want to extract values of Termm,Msg, &amp;amp;ip value&lt;/P&gt;

&lt;P&gt;I have tried using field extraction but having issues I want to get through regex or rex, Can you pls let me know how can i get  values into fields like ip, Msg &amp;amp; Term&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Sun, 29 Jan 2017 20:15:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/field-extraction/m-p/257099#M76988</guid>
      <dc:creator>msachdeva3</dc:creator>
      <dc:date>2017-01-29T20:15:33Z</dc:date>
    </item>
    <item>
      <title>Re: field extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/field-extraction/m-p/257100#M76989</link>
      <description>&lt;P&gt;If its json then it shall already be extracted, but if not already extracted then you can extract them using below regex which will extract the values in fields called &lt;CODE&gt;termField, msgField, ipField&lt;/CODE&gt; :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your query to return events
| rex field=_raw "Term\"\s*:\s*\"(?&amp;lt;termField&amp;gt;[^\"]+)\",\"Msg\"\s*:\s*\"(?&amp;lt;msgField&amp;gt;[^\"]+)\",\"Ip\"\s*:\s*\"(?&amp;lt;ipField&amp;gt;[^\"]+)\""
| table termField, msgField, ipField
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You can change the names of these fields if you like by changing it in above regex and same regex can be used in field extractor.&lt;/P&gt;</description>
      <pubDate>Sun, 29 Jan 2017 20:36:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/field-extraction/m-p/257100#M76989</guid>
      <dc:creator>gokadroid</dc:creator>
      <dc:date>2017-01-29T20:36:07Z</dc:date>
    </item>
  </channel>
</rss>

