<?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 rex command in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/rex-command/m-p/490527#M8816</link>
    <description>&lt;P&gt;How to fetch activity id using rex command &lt;/P&gt;

&lt;P&gt;Log record:&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;DATA= {"note":"Succeeded | {\r\n  \"service.url\": \"\",\r\n  \"enable.debug\": false,\r\n  \"permission.base.url\": \"\",\r\n  \"userInfo.base.url\": \"\",\r\n  \"storeId.base.url\": \"\",\r\n  \"app.session.timeout\": 25\r\n},activityId: 64AB3318-4DA3-4D38-9800-5DABCC7EC263,","appVersion":"1.10"&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;I tried below query with no luck,&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;| rex field=DATA ",activityId: (?&amp;lt;ACTIVITY_ID_VALUE&amp;gt;.*)"&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Trying to fetch value "64AB3318-4DA3-4D38-9800-5DABCC7EC263" and show in table&lt;/P&gt;</description>
    <pubDate>Mon, 04 May 2020 10:58:53 GMT</pubDate>
    <dc:creator>saifdj</dc:creator>
    <dc:date>2020-05-04T10:58:53Z</dc:date>
    <item>
      <title>rex command</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/rex-command/m-p/490527#M8816</link>
      <description>&lt;P&gt;How to fetch activity id using rex command &lt;/P&gt;

&lt;P&gt;Log record:&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;DATA= {"note":"Succeeded | {\r\n  \"service.url\": \"\",\r\n  \"enable.debug\": false,\r\n  \"permission.base.url\": \"\",\r\n  \"userInfo.base.url\": \"\",\r\n  \"storeId.base.url\": \"\",\r\n  \"app.session.timeout\": 25\r\n},activityId: 64AB3318-4DA3-4D38-9800-5DABCC7EC263,","appVersion":"1.10"&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;I tried below query with no luck,&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;| rex field=DATA ",activityId: (?&amp;lt;ACTIVITY_ID_VALUE&amp;gt;.*)"&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Trying to fetch value "64AB3318-4DA3-4D38-9800-5DABCC7EC263" and show in table&lt;/P&gt;</description>
      <pubDate>Mon, 04 May 2020 10:58:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/rex-command/m-p/490527#M8816</guid>
      <dc:creator>saifdj</dc:creator>
      <dc:date>2020-05-04T10:58:53Z</dc:date>
    </item>
    <item>
      <title>Re: rex command</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/rex-command/m-p/490528#M8817</link>
      <description>&lt;P&gt;Hello @saifdj &lt;/P&gt;

&lt;P&gt;please double check you that you have an extracted field DATA. &lt;/P&gt;

&lt;P&gt;If not you can use a general regex applied to whole _raw event (which is not so effizient as you indended):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;rex "activityId: (?&amp;lt;a1&amp;gt;[\w\-]+)"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Please let me know how if it worked&lt;/P&gt;</description>
      <pubDate>Mon, 04 May 2020 12:46:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/rex-command/m-p/490528#M8817</guid>
      <dc:creator>PavelP</dc:creator>
      <dc:date>2020-05-04T12:46:26Z</dc:date>
    </item>
    <item>
      <title>Re: rex command</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/rex-command/m-p/490529#M8818</link>
      <description>&lt;P&gt;Slightly more generic (since it looks like a comma is the delimiter):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | rex "activityId: (?&amp;lt;ACTIVITY_ID_VALUE&amp;gt;[^,]+)"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 04 May 2020 17:20:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/rex-command/m-p/490529#M8818</guid>
      <dc:creator>cpetterborg</dc:creator>
      <dc:date>2020-05-04T17:20:31Z</dc:date>
    </item>
  </channel>
</rss>

