<?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: Appendcols missing data in column in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Appendcols-missing-data-in-column/m-p/266696#M80187</link>
    <description>&lt;P&gt;index=cat sourcetype=ctap host=sc58lcatp* source="*.out" "INFO: COMPETITIVE_INFO" LTAPIA   | stats count as "GetGlossary" by cat_userid cat_role&lt;/P&gt;

&lt;P&gt;Results:&lt;BR /&gt;
LTAPIA CARERETENTION  2&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 12:38:52 GMT</pubDate>
    <dc:creator>kmccowen</dc:creator>
    <dc:date>2020-09-29T12:38:52Z</dc:date>
    <item>
      <title>Appendcols missing data in column</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Appendcols-missing-data-in-column/m-p/266691#M80182</link>
      <description>&lt;P&gt;Here is my query:&lt;/P&gt;

&lt;P&gt;index search "INFO: ZIP_SEARCH" | stats count as "Uses" by cat_userid cat_role | appendcols[index search "INFO: COMPARE"  | stats count as "Compare" by cat_userid cat_role]| appendcols[index search "INFO: COMPETITIVE_INFO"  | stats count as "GetGlossary" by cat_userid cat_role]&lt;/P&gt;

&lt;P&gt;My Results are missing GetGlossary value of 2&lt;/P&gt;

&lt;P&gt;Results:&lt;BR /&gt;
LTAPIA  CARERETENTION  70  3    &lt;/P&gt;

&lt;P&gt;If I add the USERID LTAPIA to the queries&lt;/P&gt;

&lt;P&gt;index search "INFO: ZIP_SEARCH"  LTAPIA  | stats count as "Uses" by cat_userid cat_role | appendcols[index search "INFO: COMPARE" LTAPIA   | stats count as "Compare" by cat_userid cat_role]| appendcols[index search "INFO: COMPETITIVE_INFO" LTAPIA    | stats count as "GetGlossary" by cat_userid cat_role]&lt;/P&gt;

&lt;P&gt;My results are complete.&lt;BR /&gt;
LTAPIA    CARERETENTION  70  3  2&lt;/P&gt;

&lt;P&gt;How can this be?  &lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 12:38:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Appendcols-missing-data-in-column/m-p/266691#M80182</guid>
      <dc:creator>kmccowen</dc:creator>
      <dc:date>2020-09-29T12:38:31Z</dc:date>
    </item>
    <item>
      <title>Re: Appendcols missing data in column</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Appendcols-missing-data-in-column/m-p/266692#M80183</link>
      <description>&lt;P&gt;Do all three search done on same data (index/sourcetype is same but searching different strings)? If yes, can you share the base search portion? You may be able to avoid the appendcols altogether and the query should perform better as well.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2017 22:35:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Appendcols-missing-data-in-column/m-p/266692#M80183</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-01-31T22:35:00Z</dc:date>
    </item>
    <item>
      <title>Re: Appendcols missing data in column</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Appendcols-missing-data-in-column/m-p/266693#M80184</link>
      <description>&lt;P&gt;Run this and see what we learn.  Instead of appending columns, this will create a single record for each of your searches.  You'll be able to see whether each search is returning data or not.   &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index search "INFO: ZIP_SEARCH"  
| stats count as "Uses" by cat_userid cat_role 
| eval test="No LTAPIA", counttype="1 Uses"
| append
   [index search "INFO: COMPARE"  
   | stats count as "Compare" by cat_userid cat_role
   | eval test="No LTAPIA",counttype="2 Compare"
   ]
| append
   [index search "INFO: COMPETITIVE_INFO" 
   | stats count as "GetGlossary" by cat_userid cat_role
   | eval test="No LTAPIA",counttype="3 GetGlossary"
   ]
| append
   [index search "INFO: ZIP_SEARCH" LTAPIA 
   | stats count as "Uses" by cat_userid cat_role 
   | eval test="With LTAPIA", counttype="1 Uses"
   ]
| append
   [index search "INFO: COMPARE" LTAPIA 
   | stats count as "Compare" by cat_userid cat_role
   | eval test="With LTAPIA",counttype="2 Compare"
   ]
| append
   [index search "INFO: COMPETITIVE_INFO" LTAPIA 
   | stats count as "GetGlossary" by cat_userid cat_role
   | eval test="With LTAPIA",counttype="3 GetGlossary" 
   ]
| sort test, counttype, cat_userid, cat_role
| fillnull value="(empty)" "Uses", "Compare", "GetGlossary"
| table test, counttype, cat_userid, cat_role, "Uses", "Compare", "GetGlossary"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 01 Feb 2017 03:34:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Appendcols-missing-data-in-column/m-p/266693#M80184</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2017-02-01T03:34:38Z</dc:date>
    </item>
    <item>
      <title>Re: Appendcols missing data in column</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Appendcols-missing-data-in-column/m-p/266694#M80185</link>
      <description>&lt;P&gt;Yes, it's the same base query for all three. &lt;/P&gt;

&lt;P&gt;index=cat sourcetype=ctap host=sc58lcatp* source="*.out" &lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2017 13:18:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Appendcols-missing-data-in-column/m-p/266694#M80185</guid>
      <dc:creator>kmccowen</dc:creator>
      <dc:date>2017-02-01T13:18:12Z</dc:date>
    </item>
    <item>
      <title>Re: Appendcols missing data in column</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Appendcols-missing-data-in-column/m-p/266695#M80186</link>
      <description>&lt;P&gt;Results:&lt;/P&gt;

&lt;P&gt;No LTAPIA   1 Uses  LTAPIA  CARERETENTION   168 (empty) (empty)&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2017 13:25:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Appendcols-missing-data-in-column/m-p/266695#M80186</guid>
      <dc:creator>kmccowen</dc:creator>
      <dc:date>2017-02-01T13:25:10Z</dc:date>
    </item>
    <item>
      <title>Re: Appendcols missing data in column</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Appendcols-missing-data-in-column/m-p/266696#M80187</link>
      <description>&lt;P&gt;index=cat sourcetype=ctap host=sc58lcatp* source="*.out" "INFO: COMPETITIVE_INFO" LTAPIA   | stats count as "GetGlossary" by cat_userid cat_role&lt;/P&gt;

&lt;P&gt;Results:&lt;BR /&gt;
LTAPIA CARERETENTION  2&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 12:38:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Appendcols-missing-data-in-column/m-p/266696#M80187</guid>
      <dc:creator>kmccowen</dc:creator>
      <dc:date>2020-09-29T12:38:52Z</dc:date>
    </item>
    <item>
      <title>Re: Appendcols missing data in column</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Appendcols-missing-data-in-column/m-p/266697#M80188</link>
      <description>&lt;P&gt;I'm trying to recreate a report in Splunk from another application and it's formatted like this.&lt;/P&gt;

&lt;P&gt;Parameter   Value&lt;BR /&gt;&lt;BR /&gt;
StartDate   1/15/2017&lt;BR /&gt;&lt;BR /&gt;
EndDate 1/25/2017           &lt;/P&gt;

&lt;P&gt;UserID  SalesChannel    Uses    Compare GetGlossary&lt;BR /&gt;
ltapia  Careretention   69  2   2&lt;BR /&gt;
mmslagle    Careretention   68  2   23&lt;BR /&gt;
mpsutter    Careretention   64  5   0&lt;BR /&gt;
tdewey  Careretention   46  23  0&lt;BR /&gt;
akcarpenter Careretention   42  10  0&lt;BR /&gt;
sklompstra  Careretention   42  6   0&lt;BR /&gt;
khaselhuhn  Careretention   37  2   10&lt;BR /&gt;
aneuens Careretention   36  5   0&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2017 13:30:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Appendcols-missing-data-in-column/m-p/266697#M80188</guid>
      <dc:creator>kmccowen</dc:creator>
      <dc:date>2017-02-01T13:30:46Z</dc:date>
    </item>
    <item>
      <title>Re: Appendcols missing data in column</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Appendcols-missing-data-in-column/m-p/266698#M80189</link>
      <description>&lt;P&gt;So I'm needing to match this formatting&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2017 13:32:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Appendcols-missing-data-in-column/m-p/266698#M80189</guid>
      <dc:creator>kmccowen</dc:creator>
      <dc:date>2017-02-01T13:32:24Z</dc:date>
    </item>
    <item>
      <title>Re: Appendcols missing data in column</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Appendcols-missing-data-in-column/m-p/266699#M80190</link>
      <description>&lt;P&gt;Give this a try&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=cat sourcetype=ctap host=sc58lcatp* source="*.out" ("INFO: ZIP_SEARCH" OR "INFO: COMPARE" OR "INFO: COMPETITIVE_INFO")
| eval Uses=if(searchmatch("INFO: ZIP_SEARCH"),1,0)
| eval Compare=if(searchmatch("INFO: COMPARE"),1,0)
| eval GetGlossary=if(searchmatch("INFO: COMPETITIVE_INFO"),1,0)
| stats sum(Uses) as Uses sum(Compare) as Compare sum(GetGlossary) as GetGlossary by cat_userid cat_role
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 01 Feb 2017 16:53:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Appendcols-missing-data-in-column/m-p/266699#M80190</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-02-01T16:53:45Z</dc:date>
    </item>
    <item>
      <title>Re: Appendcols missing data in column</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Appendcols-missing-data-in-column/m-p/266700#M80191</link>
      <description>&lt;P&gt;this works, thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2017 17:01:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Appendcols-missing-data-in-column/m-p/266700#M80191</guid>
      <dc:creator>kmccowen</dc:creator>
      <dc:date>2017-02-01T17:01:47Z</dc:date>
    </item>
  </channel>
</rss>

