<?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 in same column different rows in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/appendcols-in-same-column-different-rows/m-p/154260#M43376</link>
    <description>&lt;P&gt;Append didn't quite do it. And OR does not work for this.&lt;/P&gt;

&lt;P&gt;Here is my searchstring:&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;searchstring | chart count(utma) as&lt;BR /&gt;
"Total Visits" | appendcols [search&lt;BR /&gt;
searchstring |dedup utma| chart&lt;BR /&gt;
count(utma) as "Total Visitors"]|&lt;BR /&gt;
appendcols [search searchstring |&lt;BR /&gt;
chart count by date_wday | stats&lt;BR /&gt;
avg(count) as "Average Page Views by&lt;BR /&gt;
Day"] | appendcols [search&lt;BR /&gt;
searchstring | dedup utma |chart count&lt;BR /&gt;
by date_wday | stats avg(count) as&lt;BR /&gt;
"Average Page Visit by Day"] |&lt;BR /&gt;
appendcols [search searchstring |&lt;BR /&gt;
chart count by date_wday | stats&lt;BR /&gt;
median(count) as "Median Page Views by&lt;BR /&gt;
Day"] | appendcols [search&lt;BR /&gt;
searchstring |dedup utma| chart count&lt;BR /&gt;
by date_wday | stats median(count) as&lt;BR /&gt;
"Median Page Visits by Day"]**&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;</description>
    <pubDate>Mon, 28 Sep 2020 16:33:38 GMT</pubDate>
    <dc:creator>hagjos43</dc:creator>
    <dc:date>2020-09-28T16:33:38Z</dc:date>
    <item>
      <title>appendcols in same column different rows</title>
      <link>https://community.splunk.com/t5/Splunk-Search/appendcols-in-same-column-different-rows/m-p/154257#M43373</link>
      <description>&lt;P&gt;Currently I have a long query that gives me the results that I want, but not in the order that I want. Here is my sample query:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;search xyz| appendcols [search abc ]| appendcols [search 123 ]| appendcols [search 098]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Results:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;xyz    |   abc    |    123    |    098
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I would like them to be listed as such:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;xyz
abc
123
098
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;All within the same column, but different rows. Is this possible?&lt;/P&gt;</description>
      <pubDate>Tue, 06 May 2014 17:45:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/appendcols-in-same-column-different-rows/m-p/154257#M43373</guid>
      <dc:creator>hagjos43</dc:creator>
      <dc:date>2014-05-06T17:45:54Z</dc:date>
    </item>
    <item>
      <title>Re: appendcols in same column different rows</title>
      <link>https://community.splunk.com/t5/Splunk-Search/appendcols-in-same-column-different-rows/m-p/154258#M43374</link>
      <description>&lt;P&gt;Why not do this&lt;/P&gt;

&lt;P&gt;xyz OR abc OR 123 OR 098&lt;/P&gt;

&lt;P&gt;If the &lt;CODE&gt;xyz&lt;/CODE&gt; represents a complicated search, put parenthesis around it.&lt;/P&gt;

&lt;P&gt;If you &lt;EM&gt;must&lt;/EM&gt; do subsearches, use &lt;CODE&gt;append&lt;/CODE&gt; instead of &lt;CODE&gt;appendcols&lt;/CODE&gt; - BUT you shouldn't need subsearches for this.&lt;BR /&gt;
And subsearches are less efficient and have significant limitations.&lt;/P&gt;</description>
      <pubDate>Tue, 06 May 2014 18:10:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/appendcols-in-same-column-different-rows/m-p/154258#M43374</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2014-05-06T18:10:13Z</dc:date>
    </item>
    <item>
      <title>Re: appendcols in same column different rows</title>
      <link>https://community.splunk.com/t5/Splunk-Search/appendcols-in-same-column-different-rows/m-p/154259#M43375</link>
      <description>&lt;P&gt;You should use append instead on appendcols.&lt;/P&gt;</description>
      <pubDate>Tue, 06 May 2014 18:42:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/appendcols-in-same-column-different-rows/m-p/154259#M43375</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-05-06T18:42:12Z</dc:date>
    </item>
    <item>
      <title>Re: appendcols in same column different rows</title>
      <link>https://community.splunk.com/t5/Splunk-Search/appendcols-in-same-column-different-rows/m-p/154260#M43376</link>
      <description>&lt;P&gt;Append didn't quite do it. And OR does not work for this.&lt;/P&gt;

&lt;P&gt;Here is my searchstring:&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;searchstring | chart count(utma) as&lt;BR /&gt;
"Total Visits" | appendcols [search&lt;BR /&gt;
searchstring |dedup utma| chart&lt;BR /&gt;
count(utma) as "Total Visitors"]|&lt;BR /&gt;
appendcols [search searchstring |&lt;BR /&gt;
chart count by date_wday | stats&lt;BR /&gt;
avg(count) as "Average Page Views by&lt;BR /&gt;
Day"] | appendcols [search&lt;BR /&gt;
searchstring | dedup utma |chart count&lt;BR /&gt;
by date_wday | stats avg(count) as&lt;BR /&gt;
"Average Page Visit by Day"] |&lt;BR /&gt;
appendcols [search searchstring |&lt;BR /&gt;
chart count by date_wday | stats&lt;BR /&gt;
median(count) as "Median Page Views by&lt;BR /&gt;
Day"] | appendcols [search&lt;BR /&gt;
searchstring |dedup utma| chart count&lt;BR /&gt;
by date_wday | stats median(count) as&lt;BR /&gt;
"Median Page Visits by Day"]**&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Mon, 28 Sep 2020 16:33:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/appendcols-in-same-column-different-rows/m-p/154260#M43376</guid>
      <dc:creator>hagjos43</dc:creator>
      <dc:date>2020-09-28T16:33:38Z</dc:date>
    </item>
    <item>
      <title>Re: appendcols in same column different rows</title>
      <link>https://community.splunk.com/t5/Splunk-Search/appendcols-in-same-column-different-rows/m-p/154261#M43377</link>
      <description>&lt;P&gt;The field name generated by each search/subsearch is different hence append doesn't work. What should be your expected output? Should it be like this?&lt;/P&gt;

&lt;H2&gt;Metrics                ##This is header&lt;/H2&gt;

&lt;P&gt;Total Visits- value&lt;BR /&gt;
Total Visitors-value&lt;BR /&gt;
Average Page Views by Day-value&lt;BR /&gt;
Average Page Visit by Day-value&lt;BR /&gt;
Median Page Views by Day-value&lt;BR /&gt;
Median Page Visits by Day-value&lt;/P&gt;

&lt;P&gt;(along with name of value being shown) &lt;BR /&gt;
OR just the values?&lt;/P&gt;</description>
      <pubDate>Thu, 08 May 2014 16:55:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/appendcols-in-same-column-different-rows/m-p/154261#M43377</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-05-08T16:55:11Z</dc:date>
    </item>
    <item>
      <title>Re: appendcols in same column different rows</title>
      <link>https://community.splunk.com/t5/Splunk-Search/appendcols-in-same-column-different-rows/m-p/154262#M43378</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;searchstring | stats count(utma) as Value | eval Metric="Total Visits" 
| append [search searchstring | stats dc(utma) as Value | eval Metric="Total Visitors"]
| append [search searchstring | stats count by date_wday 
          | stats avg(count) as Value | eval Metric="Average Page Views by Day"]
| append [search searchstring | stats dc(utma) as count by date_wday 
          | stats avg(count) as Value | eval Metric = "Average Page Visit by Day"] 
| append [search searchstring | stats count by date_wday 
          | stats median(count) as Value | eval Metric="Median Page Views by Day"] 
| append [search searchstring | stats dc(utma) as count by date_wday
          | stats median(count) as Value | eval Metric="Median Page Visits by Day"]
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 08 May 2014 22:59:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/appendcols-in-same-column-different-rows/m-p/154262#M43378</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2014-05-08T22:59:16Z</dc:date>
    </item>
    <item>
      <title>Re: appendcols in same column different rows</title>
      <link>https://community.splunk.com/t5/Splunk-Search/appendcols-in-same-column-different-rows/m-p/154263#M43379</link>
      <description>&lt;P&gt;Perfect! Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 09 May 2014 12:28:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/appendcols-in-same-column-different-rows/m-p/154263#M43379</guid>
      <dc:creator>hagjos43</dc:creator>
      <dc:date>2014-05-09T12:28:27Z</dc:date>
    </item>
  </channel>
</rss>

