<?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 Strange behaviour when using dedup. in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Strange-behaviour-when-using-dedup/m-p/487344#M136202</link>
    <description>&lt;P&gt;I have this query which when I run,&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=*aws_config* resourceType=TERM("AWS::EC2::Volume") 
| search ARN="arn:aws:ec2:eu-west-1:848889366260:volume/vol-0ecf419c9cd71857c" 
| table ARN, "tags.Genie.ArchPath" 
| dedup ARN
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;gives following results. Notice that value of field "tags.Genie.ArchPath" is blank. This is what I expect&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;+-----------------------------------------------------------------+---------------------+
|                               ARN                               | tags.Genie.ArchPath |
+-----------------------------------------------------------------+---------------------+
| arn:aws:ec2:eu-west-1:848889366260:volume/vol-0ecf419c9cd71857c |                     |
+-----------------------------------------------------------------+---------------------+
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;However when change the query so that dedup is called earlier, I get strange results,&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=*aws_config* resourceType=TERM("AWS::EC2::Volume") 
| dedup ARN
| table ARN, "tags.Genie.ArchPath"
| search ARN="arn:aws:ec2:eu-west-1:848889366260:volume/vol-0ecf419c9cd71857c"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The results I get are as shown below. Now the value of field "tags.Genie.ArchPath" is not blank. It strangely is a pipe(|) separated concatenation of source, host and sourcetype.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;+----------------------------------+--------------------------------------------------+
|               ARN                |               tags.Adobe.ArchPath                |
+----------------------------------+--------------------------------------------------+
| arn:aws:ec2:eu-west-1:8488893662 |                                                  |
| 60:volume/vol-0ecf419c9cd71857c  | source::mavl://adobe-mavlink-prod-confi          |
|                                  | g/AWSLogs/848889366260/Config/eu-west-           |
|                                  | 1/2020/4/26/ConfigSnapshot/84888936626           |
|                                  | 0_Config_eu-west-1_ConfigSnapshot_2020           |
|                                  | 0426T110637Z_6375f945-8932-4196-ab9f-27          |
|                                  | 1c3333c55a.json.gz|host::840136feca32|aws:config |
+----------------------------------+--------------------------------------------------+
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I fail to understand shy this is happening. Ideally both the queries should give same results. Would really appreciate if someone can help here.&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Ashish&lt;/P&gt;</description>
    <pubDate>Sun, 26 Apr 2020 12:34:00 GMT</pubDate>
    <dc:creator>iet_ashish</dc:creator>
    <dc:date>2020-04-26T12:34:00Z</dc:date>
    <item>
      <title>Strange behaviour when using dedup.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Strange-behaviour-when-using-dedup/m-p/487344#M136202</link>
      <description>&lt;P&gt;I have this query which when I run,&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=*aws_config* resourceType=TERM("AWS::EC2::Volume") 
| search ARN="arn:aws:ec2:eu-west-1:848889366260:volume/vol-0ecf419c9cd71857c" 
| table ARN, "tags.Genie.ArchPath" 
| dedup ARN
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;gives following results. Notice that value of field "tags.Genie.ArchPath" is blank. This is what I expect&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;+-----------------------------------------------------------------+---------------------+
|                               ARN                               | tags.Genie.ArchPath |
+-----------------------------------------------------------------+---------------------+
| arn:aws:ec2:eu-west-1:848889366260:volume/vol-0ecf419c9cd71857c |                     |
+-----------------------------------------------------------------+---------------------+
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;However when change the query so that dedup is called earlier, I get strange results,&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=*aws_config* resourceType=TERM("AWS::EC2::Volume") 
| dedup ARN
| table ARN, "tags.Genie.ArchPath"
| search ARN="arn:aws:ec2:eu-west-1:848889366260:volume/vol-0ecf419c9cd71857c"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The results I get are as shown below. Now the value of field "tags.Genie.ArchPath" is not blank. It strangely is a pipe(|) separated concatenation of source, host and sourcetype.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;+----------------------------------+--------------------------------------------------+
|               ARN                |               tags.Adobe.ArchPath                |
+----------------------------------+--------------------------------------------------+
| arn:aws:ec2:eu-west-1:8488893662 |                                                  |
| 60:volume/vol-0ecf419c9cd71857c  | source::mavl://adobe-mavlink-prod-confi          |
|                                  | g/AWSLogs/848889366260/Config/eu-west-           |
|                                  | 1/2020/4/26/ConfigSnapshot/84888936626           |
|                                  | 0_Config_eu-west-1_ConfigSnapshot_2020           |
|                                  | 0426T110637Z_6375f945-8932-4196-ab9f-27          |
|                                  | 1c3333c55a.json.gz|host::840136feca32|aws:config |
+----------------------------------+--------------------------------------------------+
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I fail to understand shy this is happening. Ideally both the queries should give same results. Would really appreciate if someone can help here.&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Ashish&lt;/P&gt;</description>
      <pubDate>Sun, 26 Apr 2020 12:34:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Strange-behaviour-when-using-dedup/m-p/487344#M136202</guid>
      <dc:creator>iet_ashish</dc:creator>
      <dc:date>2020-04-26T12:34:00Z</dc:date>
    </item>
    <item>
      <title>Re: Strange behaviour when using dedup.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Strange-behaviour-when-using-dedup/m-p/487345#M136203</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/58367"&gt;@iet_ashish&lt;/a&gt; ,&lt;/P&gt;

&lt;P&gt;what happens if you use tags_Genie_ArchPath instead of tags.Adobe.ArchPath ? By default any field keys which contain dot in the name are being "cleaned":&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;CLEAN_KEYS = [true|false]
* NOTE: This setting is only valid for search-time field extractions.
* Optional. Controls whether Splunk software "cleans" the keys (field names) it
  extracts at search time. "Key cleaning" is the practice of replacing any
  non-alphanumeric characters (characters other than those falling between the
  a-z, A-Z, or 0-9 ranges) in field names with underscores, as well as the
  stripping of leading underscores and 0-9 characters from field names.
* Add CLEAN_KEYS = false to your transform if you need to extract field
  names that include non-alphanumeric characters, or which begin with
  underscores or 0-9 characters.
* Default: true
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Let me know if it worked for you&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 05:13:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Strange-behaviour-when-using-dedup/m-p/487345#M136203</guid>
      <dc:creator>PavelP</dc:creator>
      <dc:date>2020-09-30T05:13:40Z</dc:date>
    </item>
    <item>
      <title>Re: Strange behaviour when using dedup.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Strange-behaviour-when-using-dedup/m-p/487346#M136204</link>
      <description>&lt;P&gt;In table(Statistics): &lt;CODE&gt;dedup&lt;/CODE&gt; keep &lt;EM&gt;Top&lt;/EM&gt;&lt;BR /&gt;
In search(Events): &lt;CODE&gt;dedup&lt;/CODE&gt; keep &lt;EM&gt;First&lt;/EM&gt;&lt;/P&gt;

&lt;P&gt;If there is or not the field, It works differently.&lt;/P&gt;</description>
      <pubDate>Sun, 26 Apr 2020 20:06:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Strange-behaviour-when-using-dedup/m-p/487346#M136204</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-04-26T20:06:08Z</dc:date>
    </item>
  </channel>
</rss>

