<?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: Add a blank row in the table in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Add-a-blank-row-in-the-table/m-p/233395#M69295</link>
    <description>&lt;P&gt;If there are no follow-up question, you can mark the question as answered.&lt;/P&gt;</description>
    <pubDate>Mon, 09 May 2016 16:39:53 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2016-05-09T16:39:53Z</dc:date>
    <item>
      <title>Add a blank row in the table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Add-a-blank-row-in-the-table/m-p/233385#M69285</link>
      <description>&lt;P&gt;I have a search which would give me a table of results and at the end the total count of columns.  I want a blank line to be added between my tabular results and the total count(count of col1).  Is there a way that I can do it?&lt;/P&gt;

&lt;P&gt;eg:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;         col 1  col2 col3  col4
          12       23    2.4     4.4
          11       10    6.6      2.3
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;*&lt;STRONG&gt;&lt;EM&gt;blank line&lt;/EM&gt;&lt;/STRONG&gt;*********&lt;BR /&gt;
Count    23    &lt;/P&gt;</description>
      <pubDate>Fri, 06 May 2016 14:28:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Add-a-blank-row-in-the-table/m-p/233385#M69285</guid>
      <dc:creator>Navanitha</dc:creator>
      <dc:date>2016-05-06T14:28:17Z</dc:date>
    </item>
    <item>
      <title>Re: Add a blank row in the table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Add-a-blank-row-in-the-table/m-p/233386#M69286</link>
      <description>&lt;P&gt;Try like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your current search giving above output WITHOUT total count | append [| gentimes start=-1 | eval col1="" | table col1] | addcoltotals
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;Update&lt;/STRONG&gt;&lt;BR /&gt;
This should do the trick&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal host=sk* sourcetype=splunkd* | chart count over sourcetype by log_level | appendpipe [| head 1 | foreach * [eval &amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;=""]] | addcoltotals labelfield=sourcetype
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;With your search&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=internal "|05|" (Text="successful" OR Text="Failed") date_hour&amp;gt;=10 AND date_hour&amp;lt;=12 
| bucket _time span=1h
| stats count(Text) as Count by _time
| JOIN _time [search index=internal "|05|" (Text="successful" OR Text="Failed") (date_hour&amp;gt;=10 AND date_hour&amp;lt;=12) 
| bucket _time span=1h
| timechart span=1h avg(time) by Text
| addtotals] |eval DATE=_time | convert timeformat="%Y-%m-%d %Hh" ctime(DATE) | table DATE, Count, "successful", "Failed" Total 
| appendpipe [| head 1 | foreach * [eval &amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;=""]] 
| addcoltotals labelfield=DATE label="count btwn 10h and 12h"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 06 May 2016 14:57:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Add-a-blank-row-in-the-table/m-p/233386#M69286</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-05-06T14:57:13Z</dc:date>
    </item>
    <item>
      <title>Re: Add a blank row in the table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Add-a-blank-row-in-the-table/m-p/233387#M69287</link>
      <description>&lt;P&gt;Hey,&lt;/P&gt;

&lt;P&gt;It is giving me total, but I want to add a blank line between the tabular data and the total count I am getting just to make my report look pretty.&lt;/P&gt;</description>
      <pubDate>Fri, 06 May 2016 15:04:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Add-a-blank-row-in-the-table/m-p/233387#M69287</guid>
      <dc:creator>Navanitha</dc:creator>
      <dc:date>2016-05-06T15:04:42Z</dc:date>
    </item>
    <item>
      <title>Re: Add a blank row in the table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Add-a-blank-row-in-the-table/m-p/233388#M69288</link>
      <description>&lt;P&gt;Let's pretend that host is on your x-axis&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; Host1   12   23   2.4   4.4
 Host2   11   10   6.6   2.3
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You'll then need to eval a new host '|append [search | head 1 | eval host=" "] | sort - host'. Or similar&lt;/P&gt;</description>
      <pubDate>Sat, 07 May 2016 01:25:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Add-a-blank-row-in-the-table/m-p/233388#M69288</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2016-05-07T01:25:33Z</dc:date>
    </item>
    <item>
      <title>Re: Add a blank row in the table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Add-a-blank-row-in-the-table/m-p/233389#M69289</link>
      <description>&lt;P&gt;This is adding a blank column host.  I want to add a blank row.&lt;/P&gt;</description>
      <pubDate>Mon, 09 May 2016 08:07:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Add-a-blank-row-in-the-table/m-p/233389#M69289</guid>
      <dc:creator>Navanitha</dc:creator>
      <dc:date>2016-05-09T08:07:59Z</dc:date>
    </item>
    <item>
      <title>Re: Add a blank row in the table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Add-a-blank-row-in-the-table/m-p/233390#M69290</link>
      <description>&lt;P&gt;How about you share your search then?  &lt;/P&gt;</description>
      <pubDate>Mon, 09 May 2016 10:42:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Add-a-blank-row-in-the-table/m-p/233390#M69290</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2016-05-09T10:42:02Z</dc:date>
    </item>
    <item>
      <title>Re: Add a blank row in the table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Add-a-blank-row-in-the-table/m-p/233391#M69291</link>
      <description>&lt;P&gt;index=internal "|05|" (Text="successful"  OR Text="Failed") date_hour&amp;gt;=10 AND date_hour&amp;lt;=12 &lt;BR /&gt;
| bucket _time span=1h&lt;BR /&gt;
| stats count(Text) as Count by _time&lt;BR /&gt;
| JOIN _time [search index=internal "|05|" (Text="successful" OR Text="Failed") (date_hour&amp;gt;=10 AND date_hour&amp;lt;=12) &lt;BR /&gt;
| bucket _time span=1h&lt;BR /&gt;
| timechart span=1h avg(time) by Text&lt;BR /&gt;
| addtotals] |eval DATE=_time | convert timeformat="%Y-%m-%d %Hh" ctime(DATE) |   table DATE, Count, "successful", "Failed"  Total | addcoltotals labelfield=DATE label="count btwn 10h and 12h"&lt;/P&gt;

&lt;P&gt;Output will be below col's(labelling it as 1)&lt;BR /&gt;
DATE   Count  Successful  Failed  Total  &lt;/P&gt;

&lt;P&gt;and the last row would be (labelling it as 2)&lt;BR /&gt;
count btwn 10h and 12h   Count Successful  Failed Total&lt;/P&gt;

&lt;P&gt;Now I want a blank row (just for formatting sake) between 1 &amp;amp; 2.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 09:37:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Add-a-blank-row-in-the-table/m-p/233391#M69291</guid>
      <dc:creator>Navanitha</dc:creator>
      <dc:date>2020-09-29T09:37:53Z</dc:date>
    </item>
    <item>
      <title>Re: Add a blank row in the table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Add-a-blank-row-in-the-table/m-p/233392#M69292</link>
      <description>&lt;P&gt;Give the updated search a try&lt;/P&gt;</description>
      <pubDate>Mon, 09 May 2016 16:02:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Add-a-blank-row-in-the-table/m-p/233392#M69292</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-05-09T16:02:49Z</dc:date>
    </item>
    <item>
      <title>Re: Add a blank row in the table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Add-a-blank-row-in-the-table/m-p/233393#M69293</link>
      <description>&lt;P&gt;awesome this is what I was looking for.  Thanks a lot.  btw can you pls explain me the search from | appendpipe.&lt;/P&gt;</description>
      <pubDate>Mon, 09 May 2016 16:06:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Add-a-blank-row-in-the-table/m-p/233393#M69293</guid>
      <dc:creator>Navanitha</dc:creator>
      <dc:date>2016-05-09T16:06:39Z</dc:date>
    </item>
    <item>
      <title>Re: Add a blank row in the table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Add-a-blank-row-in-the-table/m-p/233394#M69294</link>
      <description>&lt;P&gt;The &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Appendpipe"&gt;appendpipe&lt;/A&gt;  will run some aggregation command on the current resultset and add it to current result, so what I'm doing is taking just one row (placeholder so you can use 'head 1' OR 'tail 1'), using foreach, making every column value blank.&lt;/P&gt;</description>
      <pubDate>Mon, 09 May 2016 16:09:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Add-a-blank-row-in-the-table/m-p/233394#M69294</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-05-09T16:09:54Z</dc:date>
    </item>
    <item>
      <title>Re: Add a blank row in the table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Add-a-blank-row-in-the-table/m-p/233395#M69295</link>
      <description>&lt;P&gt;If there are no follow-up question, you can mark the question as answered.&lt;/P&gt;</description>
      <pubDate>Mon, 09 May 2016 16:39:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Add-a-blank-row-in-the-table/m-p/233395#M69295</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-05-09T16:39:53Z</dc:date>
    </item>
    <item>
      <title>Re: Add a blank row in the table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Add-a-blank-row-in-the-table/m-p/233396#M69296</link>
      <description>&lt;P&gt;Thanks for the solution!  Since I had _time as part of the table, I had to add an eval statement to wipe its value.  The suggested code wiped all of the fields except _time for some reason.  I used the following code:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;search&amp;gt; | appendpipe [| head 1 | foreach * [eval &amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;=""] | eval _time=""] | append [&amp;lt;search&amp;gt;]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This allowed me to separate results for the initial search from the appended search.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Apr 2018 14:01:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Add-a-blank-row-in-the-table/m-p/233396#M69296</guid>
      <dc:creator>Nextbeat</dc:creator>
      <dc:date>2018-04-27T14:01:54Z</dc:date>
    </item>
    <item>
      <title>Re: Add a blank row in the table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Add-a-blank-row-in-the-table/m-p/233397#M69297</link>
      <description>&lt;P&gt;I actually forgot about _time field. To fix that, your method would work fine OR you can change foreach from &lt;CODE&gt;| head 1 | foreach * [eval...&lt;/CODE&gt; to &lt;CODE&gt;| head 1 | foreach * _* [eval...&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Apr 2018 14:52:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Add-a-blank-row-in-the-table/m-p/233397#M69297</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2018-04-27T14:52:49Z</dc:date>
    </item>
    <item>
      <title>Re: Add a blank row in the table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Add-a-blank-row-in-the-table/m-p/233398#M69298</link>
      <description>&lt;P&gt;Thanks for the update!  I would've thought the wildcard would've covered all the bases.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Apr 2018 16:06:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Add-a-blank-row-in-the-table/m-p/233398#M69298</guid>
      <dc:creator>Nextbeat</dc:creator>
      <dc:date>2018-04-27T16:06:11Z</dc:date>
    </item>
    <item>
      <title>Re: Add a blank row in the table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Add-a-blank-row-in-the-table/m-p/233399#M69299</link>
      <description>&lt;P&gt;Actually just the wildcard covers all non-internal stuff. Anything starting with underscore are considered Splunk's internal/default stuff and needs explicit _* wildcarding. (e.g. if you run index=*, you won't get data from any of internal indexes such as _internal _audit etc).&lt;/P&gt;</description>
      <pubDate>Fri, 27 Apr 2018 16:16:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Add-a-blank-row-in-the-table/m-p/233399#M69299</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2018-04-27T16:16:22Z</dc:date>
    </item>
    <item>
      <title>Re: Add a blank row in the table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Add-a-blank-row-in-the-table/m-p/233400#M69300</link>
      <description>&lt;P&gt;Good to know thanks again for the knowledge.&lt;/P&gt;</description>
      <pubDate>Sun, 29 Apr 2018 02:25:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Add-a-blank-row-in-the-table/m-p/233400#M69300</guid>
      <dc:creator>Nextbeat</dc:creator>
      <dc:date>2018-04-29T02:25:39Z</dc:date>
    </item>
  </channel>
</rss>

