<?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: Regex by ID removing duplicates in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Regex-by-ID-removing-duplicates/m-p/493886#M137706</link>
    <description>&lt;P&gt;If &lt;CODE&gt;Each event is determined by the linebreak&lt;/CODE&gt; then your situation is hopeless; surely that is not true!  Are you sure it isn't that &lt;CODE&gt;Each event is determined by timestamp&lt;/CODE&gt;?&lt;/P&gt;</description>
    <pubDate>Wed, 27 Nov 2019 00:29:41 GMT</pubDate>
    <dc:creator>woodcock</dc:creator>
    <dc:date>2019-11-27T00:29:41Z</dc:date>
    <item>
      <title>Regex by ID removing duplicates</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-by-ID-removing-duplicates/m-p/493885#M137705</link>
      <description>&lt;P&gt;Hello everyone.&lt;/P&gt;

&lt;P&gt;I have a code below where each event is determined by the line break. I am wanting to take the value from the "InteractionId" parameter and check that there are no duplicates.&lt;BR /&gt;
'&lt;BR /&gt;
I believe it could be a regex that only filters by '&lt;STRONG&gt;InteractionId' [str] = "value"&lt;/STRONG&gt;&lt;BR /&gt;
But I'm not sure.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;2019-11-23T18:08:04.990 Trc 24102 Sending to Universal Routing Server: urs_ad_ucl_ctmm_p: 'EventRouteRequest' (71) message:
    AttributeCustomerID [str] = "Resources"
    AttributeConnID [long] = 093902ed259a99fc
    AttributeMediaType [int] = -1
    AttributeCallID [int] = 543269
    AttributeCallType [int] = 0
 'InteractionId' [str] = "00052aEWU1VF525"
       'TenantId' [int] = 101
       'MediaType' [str] = "email"
       'InteractionType' [str] = "Inbound"
       'InteractionSubtype' [str] = "InboundNew"
2019-11-24T18:08:04.990 Trc 24102 Sending to Universal Routing Server: urs_ad_ucl_ctmm_p: 'EventRouteRequest' (71) message:
    AttributeCustomerID [str] = "Resources"
    AttributeConnID [long] = 093902ed259a99fc
    AttributeMediaType [int] = -1
    AttributeCallID [int] = 543269
    AttributeCallType [int] = 0
 'InteractionId' [str] = "00052aEWU1VFB525"
       'TenantId' [int] = 101
       'MediaType' [str] = "email"
       'InteractionType' [str] = "Inbound"
       'InteractionSubtype' [str] = "InboundNew"
2019-11-25T18:08:04.990 Trc 24102 Sending to Universal Routing Server: urs_ad_ucl_ctmm_p: 'EventRouteRequest' (71) message:
    AttributeCustomerID [str] = "Resources"
    AttributeConnID [long] = 093902ed259a99fc
    AttributeMediaType [int] = -1
    AttributeCallID [int] = 543269
    AttributeCallType [int] = 0
 'InteractionId' [str] = "00052aEWU1VFB34B"
       'TenantId' [int] = 101
       'MediaType' [str] = "email"
       'InteractionType' [str] = "Inbound"
       'InteractionSubtype' [str] = "InboundNew"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 27 Nov 2019 00:03:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-by-ID-removing-duplicates/m-p/493885#M137705</guid>
      <dc:creator>leandromatperei</dc:creator>
      <dc:date>2019-11-27T00:03:43Z</dc:date>
    </item>
    <item>
      <title>Re: Regex by ID removing duplicates</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-by-ID-removing-duplicates/m-p/493886#M137706</link>
      <description>&lt;P&gt;If &lt;CODE&gt;Each event is determined by the linebreak&lt;/CODE&gt; then your situation is hopeless; surely that is not true!  Are you sure it isn't that &lt;CODE&gt;Each event is determined by timestamp&lt;/CODE&gt;?&lt;/P&gt;</description>
      <pubDate>Wed, 27 Nov 2019 00:29:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-by-ID-removing-duplicates/m-p/493886#M137706</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-11-27T00:29:41Z</dc:date>
    </item>
    <item>
      <title>Re: Regex by ID removing duplicates</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-by-ID-removing-duplicates/m-p/493887#M137707</link>
      <description>&lt;P&gt;That's right, it's by timestamp.&lt;/P&gt;

&lt;P&gt;The timestamp is breaking the event normally, my question is how much interactions within the 'Interaction' parameter [str] =&lt;/P&gt;</description>
      <pubDate>Wed, 27 Nov 2019 00:42:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-by-ID-removing-duplicates/m-p/493887#M137707</guid>
      <dc:creator>leandromatperei</dc:creator>
      <dc:date>2019-11-27T00:42:33Z</dc:date>
    </item>
    <item>
      <title>Re: Regex by ID removing duplicates</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Regex-by-ID-removing-duplicates/m-p/493888#M137708</link>
      <description>&lt;P&gt;Like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults 
| eval raw="2019-11-23T18:08:04.990 Trc 24102 Sending to Universal Routing Server: urs_ad_ucl_ctmm_p: 'EventRouteRequest' (71) message:
     AttributeCustomerID [str] = \"Resources\"
     AttributeConnID [long] = 093902ed259a99fc
     AttributeMediaType [int] = -1
     AttributeCallID [int] = 543269
     AttributeCallType [int] = 0
  'InteractionId' [str] = \"00052aEWU1VF525\"
        'TenantId' [int] = 101
        'MediaType' [str] = \"email\"
        'InteractionType' [str] = \"Inbound\"
        'InteractionSubtype' [str] = \"InboundNew\"
:::2019-11-24T18:08:04.990 Trc 24102 Sending to Universal Routing Server: urs_ad_ucl_ctmm_p: 'EventRouteRequest' (71) message:
     AttributeCustomerID [str] = \"Resources\"
     AttributeConnID [long] = 093902ed259a99fc
     AttributeMediaType [int] = -1
     AttributeCallID [int] = 543269
     AttributeCallType [int] = 0
  'InteractionId' [str] = \"00052aEWU1VFB525\"
        'TenantId' [int] = 101
        'MediaType' [str] = \"email\"
        'InteractionType' [str] = \"Inbound\"
        'InteractionSubtype' [str] = \"InboundNew\"
:::2019-11-25T18:08:04.990 Trc 24102 Sending to Universal Routing Server: urs_ad_ucl_ctmm_p: 'EventRouteRequest' (71) message:
     AttributeCustomerID [str] = \"Resources\"
     AttributeConnID [long] = 093902ed259a99fc
     AttributeMediaType [int] = -1
     AttributeCallID [int] = 543269
     AttributeCallType [int] = 0
  'InteractionId' [str] = \"00052aEWU1VFB34B\"
        'TenantId' [int] = 101
        'MediaType' [str] = \"email\"
        'InteractionType' [str] = \"Inbound\"
        'InteractionSubtype' [str] = \"InboundNew\""
| makemv delim=":::" raw
| mvexpand raw
| rename raw AS _raw

| rename COMMENT AS "Everthing above generates sample event data; everything below is your solution"

| rex max_match=0 "\s+\'?(?&amp;lt;key&amp;gt;\S+)\'?\s\[\S+\]\s=\s\"?(?&amp;lt;value&amp;gt;[^\"\s]+)"
| eval _raw = mvzip(key, value, "=")
| kv
| eventstats count BY InteractionId
| where count &amp;gt; 1
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 27 Nov 2019 04:41:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Regex-by-ID-removing-duplicates/m-p/493888#M137708</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-11-27T04:41:13Z</dc:date>
    </item>
  </channel>
</rss>

