<?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: How to get table column headers to display even if no results are found? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-table-column-headers-to-display-even-if-no-results/m-p/501956#M139728</link>
    <description>&lt;P&gt;Thanks, but doesn't seem to work or I'm doing something wrong (quite possible), here's my query with the appendpipe added.  Feel free to let me know what I am probably doing wrong.&lt;/P&gt;

&lt;P&gt;index=wineventlog source=wineventlog:security EventCode=4725 OR EventCode=629 &lt;BR /&gt;
| appendpipe  [stats count | where count==0 | foreach _time, user, src_user, EventCodeDescription &lt;BR /&gt;
        [eval &amp;lt;&amp;gt;="No Results Found"]]&lt;/P&gt;

&lt;P&gt;| table _time, user, src_user, EventCodeDescription &lt;/P&gt;

&lt;P&gt;| rename _time as Date, src_user as "Disabled by", user as "User Account", EventCodeDescription as "Event" &lt;/P&gt;

&lt;P&gt;| convert ctime(Date)&lt;/P&gt;</description>
    <pubDate>Wed, 30 Sep 2020 03:12:10 GMT</pubDate>
    <dc:creator>bullbo</dc:creator>
    <dc:date>2020-09-30T03:12:10Z</dc:date>
    <item>
      <title>How to get table column headers to display even if no results are found?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-table-column-headers-to-display-even-if-no-results/m-p/501954#M139726</link>
      <description>&lt;P&gt;I have a search that displays new accounts created over the past 30 days and another that displays accounts deleted over the past 30 days.  &lt;/P&gt;

&lt;P&gt;I would like to have the column (field) names display even if no results are returned as well as the “No results found” message.  Is it possible or am I asking too much?&lt;/P&gt;</description>
      <pubDate>Thu, 05 Dec 2019 22:01:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-table-column-headers-to-display-even-if-no-results/m-p/501954#M139726</guid>
      <dc:creator>bullbo</dc:creator>
      <dc:date>2019-12-05T22:01:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to get table column headers to display even if no results are found?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-table-column-headers-to-display-even-if-no-results/m-p/501955#M139727</link>
      <description>&lt;P&gt;Assuming that your existing search ends in something like &lt;CODE&gt;| table _time foo bat&lt;/CODE&gt;, just insert an &lt;CODE&gt;appendpipe&lt;/CODE&gt; like like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults
| eval foo="bar", bat="baz"

| where true()=false()

| appendpipe [stats count | where count==0 | foreach _time foo bat [eval &amp;lt;&amp;gt;="No Results Found"]]
| table _time foo bat
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 06 Dec 2019 00:13:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-table-column-headers-to-display-even-if-no-results/m-p/501955#M139727</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-12-06T00:13:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to get table column headers to display even if no results are found?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-table-column-headers-to-display-even-if-no-results/m-p/501956#M139728</link>
      <description>&lt;P&gt;Thanks, but doesn't seem to work or I'm doing something wrong (quite possible), here's my query with the appendpipe added.  Feel free to let me know what I am probably doing wrong.&lt;/P&gt;

&lt;P&gt;index=wineventlog source=wineventlog:security EventCode=4725 OR EventCode=629 &lt;BR /&gt;
| appendpipe  [stats count | where count==0 | foreach _time, user, src_user, EventCodeDescription &lt;BR /&gt;
        [eval &amp;lt;&amp;gt;="No Results Found"]]&lt;/P&gt;

&lt;P&gt;| table _time, user, src_user, EventCodeDescription &lt;/P&gt;

&lt;P&gt;| rename _time as Date, src_user as "Disabled by", user as "User Account", EventCodeDescription as "Event" &lt;/P&gt;

&lt;P&gt;| convert ctime(Date)&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 03:12:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-table-column-headers-to-display-even-if-no-results/m-p/501956#M139728</guid>
      <dc:creator>bullbo</dc:creator>
      <dc:date>2020-09-30T03:12:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to get table column headers to display even if no results are found?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-table-column-headers-to-display-even-if-no-results/m-p/501957#M139729</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;index=wineventlog source=wineventlog:security EventCode=4725 OR EventCode=629
| appendpipe [stats count | where count==0 |eval EventCodeDescription="No Results Found"]
| table _time, user, src_user, EventCodeDescription
| rename _time as Date, src_user as "Disabled by", user as "User Account", EventCodeDescription as "Event"
| convert ctime(Date)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 06 Dec 2019 13:58:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-table-column-headers-to-display-even-if-no-results/m-p/501957#M139729</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2019-12-06T13:58:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to get table column headers to display even if no results are found?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-table-column-headers-to-display-even-if-no-results/m-p/501958#M139730</link>
      <description>&lt;P&gt;Perfect, thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 06 Dec 2019 14:30:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-table-column-headers-to-display-even-if-no-results/m-p/501958#M139730</guid>
      <dc:creator>bullbo</dc:creator>
      <dc:date>2019-12-06T14:30:44Z</dc:date>
    </item>
  </channel>
</rss>

