<?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: String concatentation (strcat command) is duplicating results in Knowledge Management</title>
    <link>https://community.splunk.com/t5/Knowledge-Management/String-concatentation-strcat-command-is-duplicating-results/m-p/317438#M5685</link>
    <description>&lt;P&gt;Works. Another method:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=wholesale_app buildTarget=blah analyticType=SessionStart      |rename Properties.osName as os Properties.platformData.OJ as osversion|where osversion!="null" | eval os=mvdedup(os) | eval osversion=mvdedup(osversion) |strcat os " " osversion oo|stats count by ooo
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You can also use &lt;CODE&gt;mvindex(&amp;lt;&amp;lt;FIELDNAME&amp;gt;&amp;gt;,-1)&lt;/CODE&gt; instead of mvdedup.&lt;/P&gt;</description>
    <pubDate>Fri, 01 Dec 2017 17:10:50 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2017-12-01T17:10:50Z</dc:date>
    <item>
      <title>String concatentation (strcat command) is duplicating results</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/String-concatentation-strcat-command-is-duplicating-results/m-p/317434#M5681</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I have this data &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Properties: {   [-] 
         analyticsConfigs:  {   [+] 
        }   
         appVersion:     9.0.0  
         buildTarget:    blah   
         category:   Event  
         networkStatus: {   [-] 
         NT:     3  
        }   
         osName:     iOS    
         platformData:  {   [-] 
         BL:     1  
         BP:     87 
         FF:     1  
         HC:     Apple  
         HM:     iPhone7,2  
         HS:     3oiH88BN7fhGnT45o4s3NVO2rhbUBkTU8J74xBdGuJUMYytJqZQg9c1R_hIObb5wc1CKyNDXepajsVXA   
         LL:     en 
         LO:     US 
         OJ:     10.3.3 
         OS:     1  
         SA:     49953583104    
         ST:     63989493760    
         SU:     14035910656    
         UI:     17812487-32B5-4544-93F8-A3031EB2B0A6   
        }   
    }   
     analyticType:   SessionStart   
     buildTarget:    blah   
     clientSessionId:    DXFOS-CARQDTE  
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and this query&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=wholesale_app buildTarget=blah analyticType=SessionStart   |rename Properties.osName as os Properties.platformData.OJ as osversion|where osversion!="null"|strcat os " " osversion oo|stats count by oo
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;the query "works" but it appears that strcat is duplicating values because the results look like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Android Android 6.0.1 6.0.1
Android Android 7.0 7.0
Android Android 7.1.1 7.1.1 
Android Android 8.0.0 8.0.0
iOS iOS 10.2.1 10.2.1

etc
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Am I doing something I should'nt???&lt;/P&gt;</description>
      <pubDate>Fri, 01 Dec 2017 16:00:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/String-concatentation-strcat-command-is-duplicating-results/m-p/317434#M5681</guid>
      <dc:creator>dbcase</dc:creator>
      <dc:date>2017-12-01T16:00:06Z</dc:date>
    </item>
    <item>
      <title>Re: String concatentation (strcat command) is duplicating results</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/String-concatentation-strcat-command-is-duplicating-results/m-p/317435#M5682</link>
      <description>&lt;P&gt;Run this and see if you still see duplicate values .&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index=wholesale_app buildTarget=blah analyticType=SessionStart      |rename Properties.osName as os Properties.platformData.OJ as osversion|where osversion!="null" | table os osversion
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If you do, it seems there are multiple field extraction being setup (may be you used INDEXED_EXTRACTION and KV_MODE to json in props.conf of both indexer/search head).&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 17:03:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/String-concatentation-strcat-command-is-duplicating-results/m-p/317435#M5682</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2020-09-29T17:03:05Z</dc:date>
    </item>
    <item>
      <title>Re: String concatentation (strcat command) is duplicating results</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/String-concatentation-strcat-command-is-duplicating-results/m-p/317436#M5683</link>
      <description>&lt;P&gt;yep there are dups&lt;/P&gt;

&lt;P&gt;os  osversion&lt;BR /&gt;
iOS&lt;BR /&gt;
iOS&lt;BR /&gt;
11.1.2&lt;BR /&gt;
11.1.2&lt;BR /&gt;
iOS&lt;BR /&gt;
iOS&lt;BR /&gt;
11.1.1&lt;BR /&gt;
11.1.1&lt;BR /&gt;
Android&lt;BR /&gt;
Android&lt;BR /&gt;
7.0&lt;BR /&gt;
7.0&lt;BR /&gt;
Android&lt;BR /&gt;
Android&lt;BR /&gt;
7.0&lt;BR /&gt;
7.0&lt;BR /&gt;
iOS&lt;BR /&gt;
iOS&lt;BR /&gt;
11.1.1&lt;BR /&gt;
11.1.1&lt;BR /&gt;
Android&lt;BR /&gt;
Android&lt;BR /&gt;
7.0&lt;BR /&gt;
7.0&lt;BR /&gt;
Android&lt;BR /&gt;
Android&lt;BR /&gt;
7.0&lt;BR /&gt;
7.0&lt;/P&gt;

&lt;P&gt;I'll get with support as they setup the extraction.... Thank you!!!&lt;/P&gt;</description>
      <pubDate>Fri, 01 Dec 2017 16:43:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/String-concatentation-strcat-command-is-duplicating-results/m-p/317436#M5683</guid>
      <dc:creator>dbcase</dc:creator>
      <dc:date>2017-12-01T16:43:06Z</dc:date>
    </item>
    <item>
      <title>Re: String concatentation (strcat command) is duplicating results</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/String-concatentation-strcat-command-is-duplicating-results/m-p/317437#M5684</link>
      <description>&lt;P&gt;I also "fixed" (well that is generous.... I kinda hacked at it) the problem by doing this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=wholesale_app buildTarget=blah analyticType=SessionStart   |rename Properties.osName as os Properties.platformData.OJ as osversion|where osversion!="null"|strcat os " " osversion oo|rex field=oo "(Android|iOS)\s(?&amp;lt;ooo&amp;gt;\w+\s[^\s]+)"|stats count by ooo
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 01 Dec 2017 16:48:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/String-concatentation-strcat-command-is-duplicating-results/m-p/317437#M5684</guid>
      <dc:creator>dbcase</dc:creator>
      <dc:date>2017-12-01T16:48:01Z</dc:date>
    </item>
    <item>
      <title>Re: String concatentation (strcat command) is duplicating results</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/String-concatentation-strcat-command-is-duplicating-results/m-p/317438#M5685</link>
      <description>&lt;P&gt;Works. Another method:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=wholesale_app buildTarget=blah analyticType=SessionStart      |rename Properties.osName as os Properties.platformData.OJ as osversion|where osversion!="null" | eval os=mvdedup(os) | eval osversion=mvdedup(osversion) |strcat os " " osversion oo|stats count by ooo
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You can also use &lt;CODE&gt;mvindex(&amp;lt;&amp;lt;FIELDNAME&amp;gt;&amp;gt;,-1)&lt;/CODE&gt; instead of mvdedup.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Dec 2017 17:10:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/String-concatentation-strcat-command-is-duplicating-results/m-p/317438#M5685</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-12-01T17:10:50Z</dc:date>
    </item>
  </channel>
</rss>

