<?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 Splunk regex field in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Splunk-regex-field/m-p/377043#M110628</link>
    <description>&lt;P&gt;I am trying to regex correlation Id's, that will be having a different unique number in every transaction. I am using below query but it's not fetching correct value (Correlation ID ),&lt;/P&gt;

&lt;P&gt;Splunk query : &lt;CODE&gt;timeformat="%d/%m/%Y %H:%M:%S" earliest="28/03/2019 15:38:08" latest="28/03/2019 18:08:08" host="splunk-max-tk.global.com.local:9090" "correlationid_test1234" "request flow lambda starts" OR "response flow lambda ends" | rex field=_raw "2019*(?.*?)" | where isnotnull(correlationId) | transaction correlationId startsWith="request flow lambda starts" endsWith="response flow lambda ends" | dedup correlationId&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Splunk LOGS : 28/03/2019 18:08:03.748&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;2019-03-28T18:08:03.748402+11:00 [correlationid_test1234hfkfhsfkfsjhfjlsdhfjl] INFO [init.py 187] request flow lambda starts

2019-03-28T18:08:05.129540+11:00 [correlationid_test1234hfkfhsfkfsjhfjlsdhfjl] INFO [init.py 187] response flow lambda ends
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sat, 30 Mar 2019 11:33:44 GMT</pubDate>
    <dc:creator>amandahaydaw199</dc:creator>
    <dc:date>2019-03-30T11:33:44Z</dc:date>
    <item>
      <title>Splunk regex field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-regex-field/m-p/377043#M110628</link>
      <description>&lt;P&gt;I am trying to regex correlation Id's, that will be having a different unique number in every transaction. I am using below query but it's not fetching correct value (Correlation ID ),&lt;/P&gt;

&lt;P&gt;Splunk query : &lt;CODE&gt;timeformat="%d/%m/%Y %H:%M:%S" earliest="28/03/2019 15:38:08" latest="28/03/2019 18:08:08" host="splunk-max-tk.global.com.local:9090" "correlationid_test1234" "request flow lambda starts" OR "response flow lambda ends" | rex field=_raw "2019*(?.*?)" | where isnotnull(correlationId) | transaction correlationId startsWith="request flow lambda starts" endsWith="response flow lambda ends" | dedup correlationId&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Splunk LOGS : 28/03/2019 18:08:03.748&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;2019-03-28T18:08:03.748402+11:00 [correlationid_test1234hfkfhsfkfsjhfjlsdhfjl] INFO [init.py 187] request flow lambda starts

2019-03-28T18:08:05.129540+11:00 [correlationid_test1234hfkfhsfkfsjhfjlsdhfjl] INFO [init.py 187] response flow lambda ends
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 30 Mar 2019 11:33:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-regex-field/m-p/377043#M110628</guid>
      <dc:creator>amandahaydaw199</dc:creator>
      <dc:date>2019-03-30T11:33:44Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk regex field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-regex-field/m-p/377044#M110629</link>
      <description>&lt;P&gt;You can get the correlation ID with this regex: "correlationid_(?[^]]+".&lt;BR /&gt;
Also, since correlation IDs are unique there should be no need for &lt;CODE&gt;dedup correlationId&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Sun, 31 Mar 2019 02:54:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-regex-field/m-p/377044#M110629</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2019-03-31T02:54:12Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk regex field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-regex-field/m-p/377045#M110630</link>
      <description>&lt;P&gt;Like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | rex "\[correlationid_(?&amp;lt;correlationid&amp;gt;[^\]]+)"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 31 Mar 2019 07:37:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-regex-field/m-p/377045#M110630</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-03-31T07:37:46Z</dc:date>
    </item>
  </channel>
</rss>

