<?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 How to remove a row in a table in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-a-row-in-a-table/m-p/484272#M135542</link>
    <description>&lt;P&gt;&lt;STRONG&gt;_time A   B   C   D&lt;BR /&gt;
6:05    1   1   5   8&lt;BR /&gt;
6:10    0   3   2   2&lt;BR /&gt;
6:15    5   0   6   2&lt;BR /&gt;
6:20    8   9   2   7&lt;BR /&gt;
6:25    9   2   4   5&lt;BR /&gt;
6:30    6   7   2   8&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;Hi, I have a table in a dashboard where time is broken up into 5 min bins. &lt;BR /&gt;
What I’m trying to do is eliminate all rows based on the value of a cell in a column. &lt;BR /&gt;
In my case, if any value in column A (above table) equals 0 I want the whole row to not be displayed. &lt;BR /&gt;
In the table above the row of 6:10 would be removed, and the table should be as follows:&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;_time A   B   C   D&lt;BR /&gt;
6:05    1   1   5   8&lt;BR /&gt;
6:15    5   0   6   2&lt;BR /&gt;
6:20    8   9   2      7 &lt;BR /&gt;
6:25    9   2   4   5&lt;BR /&gt;
6:30    6   7   2   8&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;I’ve tried using  &lt;CODE&gt;| where&lt;/CODE&gt; clause but it did not work. &lt;BR /&gt;
Is there a way to accomplish this?&lt;/P&gt;</description>
    <pubDate>Tue, 12 Nov 2019 20:35:38 GMT</pubDate>
    <dc:creator>kishan2356</dc:creator>
    <dc:date>2019-11-12T20:35:38Z</dc:date>
    <item>
      <title>How to remove a row in a table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-a-row-in-a-table/m-p/484272#M135542</link>
      <description>&lt;P&gt;&lt;STRONG&gt;_time A   B   C   D&lt;BR /&gt;
6:05    1   1   5   8&lt;BR /&gt;
6:10    0   3   2   2&lt;BR /&gt;
6:15    5   0   6   2&lt;BR /&gt;
6:20    8   9   2   7&lt;BR /&gt;
6:25    9   2   4   5&lt;BR /&gt;
6:30    6   7   2   8&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;Hi, I have a table in a dashboard where time is broken up into 5 min bins. &lt;BR /&gt;
What I’m trying to do is eliminate all rows based on the value of a cell in a column. &lt;BR /&gt;
In my case, if any value in column A (above table) equals 0 I want the whole row to not be displayed. &lt;BR /&gt;
In the table above the row of 6:10 would be removed, and the table should be as follows:&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;_time A   B   C   D&lt;BR /&gt;
6:05    1   1   5   8&lt;BR /&gt;
6:15    5   0   6   2&lt;BR /&gt;
6:20    8   9   2      7 &lt;BR /&gt;
6:25    9   2   4   5&lt;BR /&gt;
6:30    6   7   2   8&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;I’ve tried using  &lt;CODE&gt;| where&lt;/CODE&gt; clause but it did not work. &lt;BR /&gt;
Is there a way to accomplish this?&lt;/P&gt;</description>
      <pubDate>Tue, 12 Nov 2019 20:35:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-remove-a-row-in-a-table/m-p/484272#M135542</guid>
      <dc:creator>kishan2356</dc:creator>
      <dc:date>2019-11-12T20:35:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove a row in a table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-a-row-in-a-table/m-p/484273#M135543</link>
      <description>&lt;P&gt;Presuming you have some search that generates your table ...  try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=ndx sourcetype=srctp A=* B=* C=* D=*
| bin _time span=5m
| stats sum(A) as A sum(B) as B sum(C) as C sum(D) as D by somefield
| search A&amp;gt;0
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The &lt;CODE&gt;| search A&amp;gt;0&lt;/CODE&gt; will throw-out any events from the &lt;CODE&gt;stats&lt;/CODE&gt; results that have a 0 (or less than 0) in the A column&lt;/P&gt;</description>
      <pubDate>Tue, 12 Nov 2019 21:13:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-remove-a-row-in-a-table/m-p/484273#M135543</guid>
      <dc:creator>wmyersas</dc:creator>
      <dc:date>2019-11-12T21:13:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove a row in a table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-a-row-in-a-table/m-p/484274#M135544</link>
      <description>&lt;P&gt;whats your search query? &lt;/P&gt;</description>
      <pubDate>Tue, 12 Nov 2019 21:29:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-remove-a-row-in-a-table/m-p/484274#M135544</guid>
      <dc:creator>mayurr98</dc:creator>
      <dc:date>2019-11-12T21:29:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove a row in a table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-a-row-in-a-table/m-p/484275#M135545</link>
      <description>&lt;P&gt;Below is the source code&lt;/P&gt;

&lt;P&gt;XX&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;input type="time" token="time_finder" searchWhenChanged="true"&amp;gt;
  &amp;lt;label&amp;gt;Time Picker&amp;lt;/label&amp;gt;
  &amp;lt;default&amp;gt;
    &amp;lt;earliest&amp;gt;@d&amp;lt;/earliest&amp;gt;
    &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
  &amp;lt;/default&amp;gt;
  &amp;lt;change&amp;gt;
    &amp;lt;eval token="earliestTime"&amp;gt;if(isstr(earliest), relative_time(now(),earliest),"-0d")&amp;lt;/eval&amp;gt;
    &amp;lt;eval token="latestTime"&amp;gt;if(isstr(latest), relative_time(now(),latest), "-0d")&amp;lt;/eval&amp;gt;
    &amp;lt;eval token="earliestTime1"&amp;gt;relative_time(earliestTime,"-7d")&amp;lt;/eval&amp;gt;
    &amp;lt;eval token="latestTime1"&amp;gt;relative_time(latestTime,"-7d")&amp;lt;/eval&amp;gt;
    &amp;lt;eval token="earliestTime2"&amp;gt;relative_time(earliestTime,"-14d")&amp;lt;/eval&amp;gt;
    &amp;lt;eval token="latestTime2"&amp;gt;relative_time(latestTime,"-14d")&amp;lt;/eval&amp;gt;
    &amp;lt;eval token="earliestTime3"&amp;gt;relative_time(earliestTime,"-21d")&amp;lt;/eval&amp;gt;
    &amp;lt;eval token="latestTime3"&amp;gt;relative_time(latestTime,"-21d")&amp;lt;/eval&amp;gt;
    &amp;lt;eval token="earliestTime4"&amp;gt;relative_time(earliestTime,"-28d")&amp;lt;/eval&amp;gt;
    &amp;lt;eval token="latestTime4"&amp;gt;relative_time(latestTime,"-28d")&amp;lt;/eval&amp;gt;
  &amp;lt;/change&amp;gt;
&amp;lt;/input&amp;gt;


&amp;lt;panel&amp;gt;
  &amp;lt;title&amp;gt;XX&amp;lt;/title&amp;gt;
  &amp;lt;table&amp;gt;
    &amp;lt;title&amp;gt;&amp;lt;/title&amp;gt;
    &amp;lt;search&amp;gt;
      &amp;lt;query&amp;gt;| multisearch 
[ search index=XX sourcetype=XX earliest=$earliestTime$ latest=$latestTime$ 
| eval label="XX"  
| fields -_raw _time ecn label ] 
[ search index=XX sourcetype=XX earliest=$earliestTime1$ latest=$latestTime1$ 
| eval _time=_time+60*60*24*7 
| eval label="XX" 
| fields -_raw _time ecn label ] 
[ search index=XX sourcetype=XX earliest=$earliestTime2$ latest=$latestTime2$ 
| eval _time=_time+60*60*24*14 
| eval label="XX" 
| fields -_raw _time ecn label ] 
[ search index=XX sourcetype=XX earliest=$earliestTime3$ latest=$latestTime3$ 
| eval _time=_time+60*60*24*21 
| eval label="XX" 
| fields -_raw _time ecn label ] 
[ search index=XX sourcetype=XX earliest=$earliestTime4$ latest=$latestTime4$ 
| eval _time=_time+60*60*24*28 
| eval label="XX" 
| fields -_raw _time ecn label] 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;| bin _time span=5m &lt;BR /&gt;
| chart dc(ecn) over _time by label &lt;BR /&gt;
| eval ....&lt;BR /&gt;
| eval .... &lt;BR /&gt;
| eval .... &lt;BR /&gt;
| eval .... &lt;BR /&gt;
| eval ....&lt;BR /&gt;
| fields ...&lt;BR /&gt;
          &lt;EARLIEST&gt;$time_finder.earliest$&lt;/EARLIEST&gt;&lt;BR /&gt;
          &lt;LATEST&gt;$time_finder.latest$&lt;/LATEST&gt;&lt;BR /&gt;
        &lt;BR /&gt;
        10&lt;BR /&gt;
        none&lt;BR /&gt;
        progressbar&lt;BR /&gt;
        false&lt;BR /&gt;
        &lt;FORMAT type="number" field=""&gt;&lt;BR /&gt;
          0&lt;BR /&gt;
        &lt;/FORMAT&gt;&lt;BR /&gt;
        &lt;FORMAT type="number" field=""&gt;&lt;BR /&gt;
          0&lt;BR /&gt;
        &lt;/FORMAT&gt;&lt;BR /&gt;
        &lt;FORMAT type="number" field=""&gt;&lt;BR /&gt;
          0&lt;BR /&gt;
        &lt;/FORMAT&gt;&lt;BR /&gt;
        &lt;FORMAT type="number" field=""&gt;&lt;BR /&gt;
          0&lt;BR /&gt;
          false&lt;BR /&gt;
        &lt;/FORMAT&gt;&lt;BR /&gt;
        &lt;FORMAT type="number" field=""&gt;&lt;BR /&gt;
          0&lt;BR /&gt;
        &lt;/FORMAT&gt;&lt;BR /&gt;
        &lt;FORMAT type="number" field=""&gt;&lt;BR /&gt;
          0&lt;BR /&gt;
        &lt;/FORMAT&gt;&lt;BR /&gt;
        &lt;FORMAT type="number" field=""&gt;&lt;BR /&gt;
          0&lt;BR /&gt;
        &lt;/FORMAT&gt;&lt;BR /&gt;
        &lt;FORMAT type="number" field=""&gt;&lt;BR /&gt;
          0&lt;BR /&gt;
        &lt;/FORMAT&gt;&lt;BR /&gt;
        &lt;FORMAT type="number" field=""&gt;&lt;BR /&gt;
          0&lt;BR /&gt;
        &lt;/FORMAT&gt;&lt;BR /&gt;
        &lt;FORMAT type="number" field=""&gt;&lt;BR /&gt;
          0&lt;BR /&gt;
          false&lt;BR /&gt;
        &lt;/FORMAT&gt;&lt;BR /&gt;
        &lt;FORMAT type="number" field=""&gt;&lt;BR /&gt;
          0&lt;BR /&gt;
        &lt;/FORMAT&gt;&lt;BR /&gt;
        &lt;FORMAT type="number" field=""&gt;&lt;BR /&gt;
          0&lt;BR /&gt;
        &lt;/FORMAT&gt;&lt;BR /&gt;
        &lt;FORMAT type="number" field=""&gt;&lt;BR /&gt;
          0&lt;BR /&gt;
        &lt;/FORMAT&gt;&lt;BR /&gt;
        &lt;FORMAT type="number" field=""&gt;&lt;BR /&gt;
          0&lt;BR /&gt;
        &lt;/FORMAT&gt;&lt;BR /&gt;
      &lt;BR /&gt;
    &lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 02:57:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-remove-a-row-in-a-table/m-p/484275#M135545</guid>
      <dc:creator>kishan2356</dc:creator>
      <dc:date>2020-09-30T02:57:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove a row in a table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-a-row-in-a-table/m-p/484276#M135546</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;index=XX sourcetype=XX  (earliest=$earliestTime$ latest=$latestTime$) OR (earliest=$earliestTime1$ latest=$latestTime1$) OR (earliest=$earliestTime2$ latest=$latestTime2$) OR (earliest=$earliestTime3$ latest=$latestTime3$) OR (earliest=$earliestTime4$ latest=$latestTime4$)
| streamstats values(eval(strftime(_time,"%m%d"))) as label
| bin span=5m _time
| streamstats values(eval(strftime(_time,"%H:%M:%S"))) as time
| chart dc(ecn) over time by label
| where time!=$click.value$
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;What about this query?&lt;/P&gt;

&lt;P&gt;You have to put &lt;EM&gt;"nothing"&lt;/EM&gt; in &lt;CODE&gt;$click.value$&lt;/CODE&gt; in  &lt;CODE&gt;&amp;lt;init&amp;gt;&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Dec 2019 12:24:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-remove-a-row-in-a-table/m-p/484276#M135546</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2019-12-02T12:24:55Z</dc:date>
    </item>
  </channel>
</rss>

