<?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 JSON format using rex command? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-JSON-format-using-rex-command/m-p/364560#M107561</link>
    <description>&lt;P&gt;You're running your rex on field TranStartTime , is it already extracted/available???&lt;/P&gt;</description>
    <pubDate>Fri, 12 Apr 2019 14:44:33 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2019-04-12T14:44:33Z</dc:date>
    <item>
      <title>How to extract JSON format using rex command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-JSON-format-using-rex-command/m-p/364557#M107558</link>
      <description>&lt;P&gt;How to extract JSON format using rex command, removing double quotes &amp;amp; semi colon?&lt;/P&gt;

&lt;P&gt;"TranID":"a2775f5d", "TranStartTime":"2017-08-14T05:19:22.939-04:00", "TranEndTime":"2017-08-14T05:19:22.961-04:00"&lt;/P&gt;

&lt;P&gt;When I extract &lt;/P&gt;

&lt;P&gt;rex field=_raw "TranStartTime\S\S\S(?[^ ]+)"&lt;/P&gt;

&lt;P&gt;2017-08-14T07:15:53.919-04:00", &lt;/P&gt;

&lt;P&gt;Actually I need:&lt;/P&gt;

&lt;P&gt;2017-08-14T07:15:53.919-04:00&lt;/P&gt;</description>
      <pubDate>Mon, 14 Aug 2017 09:47:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-JSON-format-using-rex-command/m-p/364557#M107558</guid>
      <dc:creator>karthi2809</dc:creator>
      <dc:date>2017-08-14T09:47:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract JSON format using rex command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-JSON-format-using-rex-command/m-p/364558#M107559</link>
      <description>&lt;P&gt;Try like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | rex field=_raw "TranStartTime\"\:\"(?&amp;lt;TransStartTime&amp;gt;[^\"]+)"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 14 Aug 2017 14:26:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-JSON-format-using-rex-command/m-p/364558#M107559</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-08-14T14:26:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract JSON format using rex command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-JSON-format-using-rex-command/m-p/364559#M107560</link>
      <description>&lt;P&gt;@somesoni2, this worked perfectly fine, but trying to &lt;CODE&gt;rex&lt;/CODE&gt; from the json field didn't work for us. Something like - &lt;CODE&gt;| rex field=TranStartTime "&amp;lt;regular expression&amp;gt;"&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Anything we miss here?&lt;/P&gt;</description>
      <pubDate>Fri, 12 Apr 2019 14:28:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-JSON-format-using-rex-command/m-p/364559#M107560</guid>
      <dc:creator>ddrillic</dc:creator>
      <dc:date>2019-04-12T14:28:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract JSON format using rex command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-JSON-format-using-rex-command/m-p/364560#M107561</link>
      <description>&lt;P&gt;You're running your rex on field TranStartTime , is it already extracted/available???&lt;/P&gt;</description>
      <pubDate>Fri, 12 Apr 2019 14:44:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-JSON-format-using-rex-command/m-p/364560#M107561</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2019-04-12T14:44:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract JSON format using rex command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-JSON-format-using-rex-command/m-p/364561#M107562</link>
      <description>&lt;P&gt;right, it's available as a field.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Apr 2019 14:48:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-JSON-format-using-rex-command/m-p/364561#M107562</guid>
      <dc:creator>ddrillic</dc:creator>
      <dc:date>2019-04-12T14:48:59Z</dc:date>
    </item>
  </channel>
</rss>

