<?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: Get columns that have non-zero value columns over time (using timechart) in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Get-columns-that-have-non-zero-value-columns-over-time-using/m-p/472243#M132864</link>
    <description>&lt;P&gt;You just need to modify your search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=servers sourcetype=server_list Columns &amp;gt; 0
| timechart span=1m count as Total by Columns
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You can test using the _internal index with the following (e.g.):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal max_size_kb &amp;gt; 0
| timechart span=1m count as Total by max_size_kb
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 14 Feb 2020 15:58:10 GMT</pubDate>
    <dc:creator>codebuilder</dc:creator>
    <dc:date>2020-02-14T15:58:10Z</dc:date>
    <item>
      <title>Get columns that have non-zero value columns over time (using timechart)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Get-columns-that-have-non-zero-value-columns-over-time-using/m-p/472242#M132863</link>
      <description>&lt;P&gt;Hi Team,&lt;BR /&gt;
Can anyone help me on this -&lt;BR /&gt;
I want to Get columns that have non-zero values over time (using timechart).&lt;/P&gt;

&lt;P&gt;_time           Column1 Column2 Column3 Column4 Column5 Column N&lt;BR /&gt;
2/14/2020 2:11  0   0   0   0   0   0&lt;BR /&gt;
2/14/2020 2:12  0   0   0   0   0   0&lt;BR /&gt;
2/14/2020 2:13  1   0   0   0   0   0&lt;BR /&gt;
2/14/2020 2:14  0   0   1   0   0   0&lt;BR /&gt;
2/14/2020 2:15  0   0   0   5   0   0&lt;BR /&gt;
2/14/2020 2:16  0   0   0   0   0   0&lt;BR /&gt;
2/14/2020 2:17  0   0   0   0   0   0&lt;BR /&gt;
2/14/2020 2:18  0   0   0   0   0   0&lt;/P&gt;

&lt;P&gt;The query I am using (But I am not able to remove zero value columns )&lt;/P&gt;

&lt;P&gt;index=servers sourcetype=server_list Columns ="*"&lt;BR /&gt;
| timechart span=1m count as Total by Columns&lt;BR /&gt;
|  where Columns &amp;gt; 0&lt;/P&gt;</description>
      <pubDate>Fri, 14 Feb 2020 12:17:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Get-columns-that-have-non-zero-value-columns-over-time-using/m-p/472242#M132863</guid>
      <dc:creator>sahil237888</dc:creator>
      <dc:date>2020-02-14T12:17:27Z</dc:date>
    </item>
    <item>
      <title>Re: Get columns that have non-zero value columns over time (using timechart)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Get-columns-that-have-non-zero-value-columns-over-time-using/m-p/472243#M132864</link>
      <description>&lt;P&gt;You just need to modify your search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=servers sourcetype=server_list Columns &amp;gt; 0
| timechart span=1m count as Total by Columns
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You can test using the _internal index with the following (e.g.):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal max_size_kb &amp;gt; 0
| timechart span=1m count as Total by max_size_kb
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 14 Feb 2020 15:58:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Get-columns-that-have-non-zero-value-columns-over-time-using/m-p/472243#M132864</guid>
      <dc:creator>codebuilder</dc:creator>
      <dc:date>2020-02-14T15:58:10Z</dc:date>
    </item>
    <item>
      <title>Re: Get columns that have non-zero value columns over time (using timechart)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Get-columns-that-have-non-zero-value-columns-over-time-using/m-p/472244#M132865</link>
      <description>&lt;P&gt;e.g.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal max_size_kb &amp;gt; 0
 | timechart span=1m count as Total by max_size_kb
 | foreach * [ eval check=max(check,'&amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;') ]
 | where check &amp;gt; 0
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;recommend:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=servers sourcetype=server_list Columns &amp;gt; 0
| timechart span=1m count as Total by Columns
| foreach * [ eval check=max(check,'&amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;') ]
| where check &amp;gt; 0
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 14 Feb 2020 23:52:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Get-columns-that-have-non-zero-value-columns-over-time-using/m-p/472244#M132865</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-02-14T23:52:30Z</dc:date>
    </item>
  </channel>
</rss>

