<?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 logs by rex ? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-logs-by-rex/m-p/366899#M161173</link>
    <description>&lt;P&gt;Try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;_your_search_ | rex "\"TranStartTime\":\"(?P&amp;lt;tranStartTime&amp;gt;[^\"]*)\",\s\"TranEndTime\":\"(?P&amp;lt;tranEndTime&amp;gt;[^\"]*)\""
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 08 May 2017 18:48:45 GMT</pubDate>
    <dc:creator>cpetterborg</dc:creator>
    <dc:date>2017-05-08T18:48:45Z</dc:date>
    <item>
      <title>How to extract logs by rex ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-logs-by-rex/m-p/366898#M161172</link>
      <description>&lt;P&gt;How to extract logs by rex ?&lt;BR /&gt;
"TranStartTime":"2017-05-08T02:40:58.856-04:00", "TranEndTime":"2017-05-08T02:40:58.902-04:00"&lt;/P&gt;

&lt;P&gt;need to TranStartTime and TranEndTime&lt;/P&gt;</description>
      <pubDate>Mon, 08 May 2017 06:46:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-logs-by-rex/m-p/366898#M161172</guid>
      <dc:creator>karthi2809</dc:creator>
      <dc:date>2017-05-08T06:46:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract logs by rex ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-logs-by-rex/m-p/366899#M161173</link>
      <description>&lt;P&gt;Try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;_your_search_ | rex "\"TranStartTime\":\"(?P&amp;lt;tranStartTime&amp;gt;[^\"]*)\",\s\"TranEndTime\":\"(?P&amp;lt;tranEndTime&amp;gt;[^\"]*)\""
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 08 May 2017 18:48:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-logs-by-rex/m-p/366899#M161173</guid>
      <dc:creator>cpetterborg</dc:creator>
      <dc:date>2017-05-08T18:48:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract logs by rex ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-logs-by-rex/m-p/366900#M161174</link>
      <description>&lt;P&gt;I'd probably put them in two separate rexes, just in case they ever arrived in a different order or separated by something else.  Upvoted anyway,  it works per regex101.com.&lt;/P&gt;</description>
      <pubDate>Mon, 08 May 2017 21:27:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-logs-by-rex/m-p/366900#M161174</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2017-05-08T21:27:03Z</dc:date>
    </item>
  </channel>
</rss>

