<?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: filtering in search also that filter value display one of the filed of stats or table column in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/filtering-in-search-also-that-filter-value-display-one-of-the/m-p/488654#M140347</link>
    <description>&lt;P&gt;&lt;CODE&gt;Here there are multiple osm_zone_id's will be appeared in single event timestamp.&lt;/CODE&gt;&lt;BR /&gt;
yes, add &lt;CODE&gt;where&lt;/CODE&gt; or &lt;CODE&gt;search&lt;/CODE&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 29 Apr 2020 11:03:21 GMT</pubDate>
    <dc:creator>to4kawa</dc:creator>
    <dc:date>2020-04-29T11:03:21Z</dc:date>
    <item>
      <title>filtering in search also that filter value display one of the filed of stats or table column</title>
      <link>https://community.splunk.com/t5/Splunk-Search/filtering-in-search-also-that-filter-value-display-one-of-the/m-p/488651#M140344</link>
      <description>&lt;P&gt;I have query like below&lt;/P&gt;

&lt;P&gt;index="us_west_prod_power_platform" sourcetype="spark:metric" metricName="HRTBT_LHIST_METRIC_DD" host="emr-prod-distributor" osm_zone_id  |timechart span=10m count | eval ds_count = if(count &amp;gt;= "1","0","1") |timechart span=10m values(ds_count)&lt;/P&gt;

&lt;P&gt;In that  "osm_zone_id " is filter ,I want that osm_zone_id is one of the field of search ,something like below.&lt;/P&gt;

&lt;P&gt;index="us_west_prod_power_platform" sourcetype="spark:metric" metricName="HRTBT_LHIST_METRIC_DD" host="emr-prod-distributor" osm_zone_id  |timechart span=10m count | eval ds_count = if(count &amp;gt;= "1","0","1") |timechart span=10m values(ds_count)| table osm_zone_id,time,ds_count&lt;/P&gt;

&lt;P&gt;Kindly suggest us.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 05:15:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/filtering-in-search-also-that-filter-value-display-one-of-the/m-p/488651#M140344</guid>
      <dc:creator>manibattula</dc:creator>
      <dc:date>2020-09-30T05:15:01Z</dc:date>
    </item>
    <item>
      <title>Re: filtering in search also that filter value display one of the filed of stats or table column</title>
      <link>https://community.splunk.com/t5/Splunk-Search/filtering-in-search-also-that-filter-value-display-one-of-the/m-p/488652#M140345</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;index="us_west_prod_power_platform" sourcetype="spark:metric" metricName="HRTBT_LHIST_METRIC_DD" host="emr-prod-distributor" osm_zone_id=*
| bin span=10m _time
| stats count by _time osm_zone_id
| eval ds_count = if(count &amp;gt;= 1,"0","1") 
| eval time=strftime(_time,"%F %T")
| table osm_zone_id,time,ds_count
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 29 Apr 2020 07:15:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/filtering-in-search-also-that-filter-value-display-one-of-the/m-p/488652#M140345</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-04-29T07:15:29Z</dc:date>
    </item>
    <item>
      <title>Re: filtering in search also that filter value display one of the filed of stats or table column</title>
      <link>https://community.splunk.com/t5/Splunk-Search/filtering-in-search-also-that-filter-value-display-one-of-the/m-p/488653#M140346</link>
      <description>&lt;P&gt;I think the above is failing  at stats statement&lt;/P&gt;

&lt;P&gt;index="us_west_prod_power_platform" sourcetype="spark:metric" metricName="HRTBT_LHIST_METRIC_DD" host="emr-prod-distributor" osm_zone_id=*&lt;BR /&gt;
 | bin span=10m _time&lt;BR /&gt;
 | stats count by _time osm_zone_id&lt;/P&gt;

&lt;P&gt;Here there are multiple osm_zone_id's will be appeared in single event timestamp.&lt;/P&gt;

&lt;P&gt;Kindly suggest&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 05:15:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/filtering-in-search-also-that-filter-value-display-one-of-the/m-p/488653#M140346</guid>
      <dc:creator>manibattula</dc:creator>
      <dc:date>2020-09-30T05:15:06Z</dc:date>
    </item>
    <item>
      <title>Re: filtering in search also that filter value display one of the filed of stats or table column</title>
      <link>https://community.splunk.com/t5/Splunk-Search/filtering-in-search-also-that-filter-value-display-one-of-the/m-p/488654#M140347</link>
      <description>&lt;P&gt;&lt;CODE&gt;Here there are multiple osm_zone_id's will be appeared in single event timestamp.&lt;/CODE&gt;&lt;BR /&gt;
yes, add &lt;CODE&gt;where&lt;/CODE&gt; or &lt;CODE&gt;search&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Apr 2020 11:03:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/filtering-in-search-also-that-filter-value-display-one-of-the/m-p/488654#M140347</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-04-29T11:03:21Z</dc:date>
    </item>
    <item>
      <title>Re: filtering in search also that filter value display one of the filed of stats or table column</title>
      <link>https://community.splunk.com/t5/Splunk-Search/filtering-in-search-also-that-filter-value-display-one-of-the/m-p/488655#M140348</link>
      <description>&lt;P&gt;Sorry,Not clear with above statment.&lt;/P&gt;

&lt;P&gt;kindly rewrite the entire query again.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Apr 2020 11:05:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/filtering-in-search-also-that-filter-value-display-one-of-the/m-p/488655#M140348</guid>
      <dc:creator>manibattula</dc:creator>
      <dc:date>2020-04-29T11:05:09Z</dc:date>
    </item>
    <item>
      <title>Re: filtering in search also that filter value display one of the filed of stats or table column</title>
      <link>https://community.splunk.com/t5/Splunk-Search/filtering-in-search-also-that-filter-value-display-one-of-the/m-p/488656#M140349</link>
      <description>&lt;P&gt;Hello to4kawa,&lt;/P&gt;

&lt;P&gt;It is working thanks much.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Apr 2020 11:10:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/filtering-in-search-also-that-filter-value-display-one-of-the/m-p/488656#M140349</guid>
      <dc:creator>manibattula</dc:creator>
      <dc:date>2020-04-29T11:10:50Z</dc:date>
    </item>
    <item>
      <title>Re: filtering in search also that filter value display one of the filed of stats or table column</title>
      <link>https://community.splunk.com/t5/Splunk-Search/filtering-in-search-also-that-filter-value-display-one-of-the/m-p/488657#M140350</link>
      <description>&lt;P&gt;I see, please accept my answer&lt;/P&gt;</description>
      <pubDate>Wed, 29 Apr 2020 11:20:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/filtering-in-search-also-that-filter-value-display-one-of-the/m-p/488657#M140350</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-04-29T11:20:20Z</dc:date>
    </item>
    <item>
      <title>Re: filtering in search also that filter value display one of the filed of stats or table column</title>
      <link>https://community.splunk.com/t5/Splunk-Search/filtering-in-search-also-that-filter-value-display-one-of-the/m-p/488658#M140351</link>
      <description>&lt;P&gt;One more question,&lt;/P&gt;

&lt;P&gt;index="us_west_prod_power_platform" sourcetype="spark:metric" metricName="HRTBT_LHIST_METRIC_DD" host="emr-prod-distributor" osm_zone_id=*&lt;BR /&gt;
 | bin span=10m _time&lt;BR /&gt;
 | stats count by _time osm_zone_id&lt;BR /&gt;
 | eval ds_count = if(count &amp;gt;= 1,"0","1") &lt;BR /&gt;
 | eval time=strftime(_time,"%F %T")&lt;BR /&gt;
 | table osm_zone_id,time,ds_count&lt;/P&gt;

&lt;P&gt;So here I am only getting each 10 minutes span which are having osm_zone_id &amp;gt; 0,I want include which are having zero also,is that possible?&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 05:15:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/filtering-in-search-also-that-filter-value-display-one-of-the/m-p/488658#M140351</guid>
      <dc:creator>manibattula</dc:creator>
      <dc:date>2020-09-30T05:15:11Z</dc:date>
    </item>
    <item>
      <title>Re: filtering in search also that filter value display one of the filed of stats or table column</title>
      <link>https://community.splunk.com/t5/Splunk-Search/filtering-in-search-also-that-filter-value-display-one-of-the/m-p/488659#M140352</link>
      <description>&lt;P&gt;I don't know your result. &lt;BR /&gt;
&lt;CODE&gt;osm_zone_id &amp;gt; 0 , 1&lt;/CODE&gt; &lt;BR /&gt;
just simply, &lt;CODE&gt;osm_zone_id &amp;gt;=0&lt;/CODE&gt; ?&lt;/P&gt;</description>
      <pubDate>Wed, 29 Apr 2020 17:48:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/filtering-in-search-also-that-filter-value-display-one-of-the/m-p/488659#M140352</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-04-29T17:48:10Z</dc:date>
    </item>
    <item>
      <title>Re: filtering in search also that filter value display one of the filed of stats or table column</title>
      <link>https://community.splunk.com/t5/Splunk-Search/filtering-in-search-also-that-filter-value-display-one-of-the/m-p/488660#M140353</link>
      <description>&lt;P&gt;So here I am only getting each 10 minutes span which are having osm_zone_id &amp;gt; 0 , but I need&lt;BR /&gt;&lt;BR /&gt;
osm_zone_id  = 0 results too.&lt;/P&gt;

&lt;P&gt;The query only gives osm_zone_id  is more than zero records,I want to include osm_zone_id equal to zero results too&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 05:10:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/filtering-in-search-also-that-filter-value-display-one-of-the/m-p/488660#M140353</guid>
      <dc:creator>manibattula</dc:creator>
      <dc:date>2020-09-30T05:10:40Z</dc:date>
    </item>
    <item>
      <title>Re: filtering in search also that filter value display one of the filed of stats or table column</title>
      <link>https://community.splunk.com/t5/Splunk-Search/filtering-in-search-also-that-filter-value-display-one-of-the/m-p/488661#M140354</link>
      <description>&lt;P&gt;In you query, limitation of &lt;CODE&gt;osm_zone_id&lt;/CODE&gt; is only  &lt;CODE&gt;osm_zone_id=*&lt;/CODE&gt; , not &lt;CODE&gt;osm_zone_id &amp;gt; 0&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Apr 2020 05:00:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/filtering-in-search-also-that-filter-value-display-one-of-the/m-p/488661#M140354</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-04-30T05:00:40Z</dc:date>
    </item>
    <item>
      <title>Re: filtering in search also that filter value display one of the filed of stats or table column</title>
      <link>https://community.splunk.com/t5/Splunk-Search/filtering-in-search-also-that-filter-value-display-one-of-the/m-p/488662#M140355</link>
      <description>&lt;P&gt;Thanks for immediate response &lt;/P&gt;

&lt;P&gt;let me explain clearly&lt;/P&gt;

&lt;P&gt;index="us_west_prod_power_platform" sourcetype="spark:metric" metricName="HRTBT_LHIST_METRIC_DD" host="emr-prod-distributor" osm_zone_id*&lt;BR /&gt;
|spath output=osm_zone_id path=dimensions{2}.value&lt;BR /&gt;
|bin span=10m _time&lt;BR /&gt;
|stats count by _time,osm_zone_id&lt;BR /&gt;
| eval ds_count = if(count &amp;gt;= 1,"0","1") &lt;BR /&gt;
| eval time=strftime(_time,"%F %T")&lt;BR /&gt;
| table osm_zone_id,time,ds_count&lt;/P&gt;

&lt;P&gt;Result:-&lt;/P&gt;

&lt;P&gt;Osm_zone_id     _time   ds_count&lt;BR /&gt;
00af8f04-88fc-4dc0-b338-42d2e7e9c163    2020-04-29 21:20:00 0&lt;BR /&gt;
00af8f04-88fc-4dc0-b338-42d2e7e9c163    2020-04-29 22:00:00 0&lt;BR /&gt;
00af8f04-88fc-4dc0-b338-42d2e7e9c163    2020-04-29 22:20:00 0&lt;BR /&gt;
00af8f04-88fc-4dc0-b338-42d2e7e9c163    2020-04-29 22:40:00 0&lt;/P&gt;

&lt;P&gt;expected result should be &lt;BR /&gt;
Osm_zone_id     _time   ds_count&lt;BR /&gt;
00af8f04-88fc-4dc0-b338-42d2e7e9c163    2020-04-29 21:20:00 0&lt;BR /&gt;
00af8f04-88fc-4dc0-b338-42d2e7e9c163    2020-04-29 22:00:00 0&lt;BR /&gt;
&lt;STRONG&gt;00af8f04-88fc-4dc0-b338-42d2e7e9c163  2020-04-29 22:10:00 1&lt;/STRONG&gt;&lt;BR /&gt;
00af8f04-88fc-4dc0-b338-42d2e7e9c163    2020-04-29 22:20:00 0&lt;BR /&gt;
00af8f04-88fc-4dc0-b338-42d2e7e9c163    2020-04-29 22:40:00 0&lt;/P&gt;

&lt;P&gt;Which are empty osm_zone_id also I want that time bucket&lt;/P&gt;

&lt;P&gt;I am trying with cross join also  &lt;/P&gt;

&lt;P&gt;s | bin _time span=1h | fields _time | join max=0 [search index="us_west_prod_power_platform" sourcetype="spark:metric" metricName="HRTBT_LHIST_METRIC_DD" host="emr-prod-distributor" | spath output=osm_zone_id path=dimensions{2}.value | dedup osm_zone_id | fields osm_zone_id] | table _time, osm_zone_id &lt;/P&gt;

&lt;P&gt;Here, _time and osm_zone_id should be null ,even there is no osm_zone_id I want to make that count is 0 &lt;/P&gt;

&lt;P&gt;Please verify.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 05:10:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/filtering-in-search-also-that-filter-value-display-one-of-the/m-p/488662#M140355</guid>
      <dc:creator>manibattula</dc:creator>
      <dc:date>2020-09-30T05:10:46Z</dc:date>
    </item>
    <item>
      <title>Re: filtering in search also that filter value display one of the filed of stats or table column</title>
      <link>https://community.splunk.com/t5/Splunk-Search/filtering-in-search-also-that-filter-value-display-one-of-the/m-p/488663#M140356</link>
      <description>&lt;P&gt;let me explain clearly&lt;/P&gt;

&lt;P&gt;index="us_west_prod_power_platform" sourcetype="spark:metric" metricName="HRTBT_LHIST_METRIC_DD" host="emr-prod-distributor" osm_zone_id*&lt;BR /&gt;
|spath output=osm_zone_id path=dimensions{2}.value&lt;BR /&gt;
|bin span=10m _time&lt;BR /&gt;
|stats count by _time,osm_zone_id&lt;BR /&gt;
| eval ds_count = if(count &amp;gt;= 1,"0","1")&lt;BR /&gt;
| eval time=strftime(_time,"%F %T")&lt;BR /&gt;
| table osm_zone_id,time,ds_count&lt;/P&gt;

&lt;P&gt;Result:-&lt;/P&gt;

&lt;P&gt;Osm_zone_id _time ds_count&lt;BR /&gt;
00af8f04-88fc-4dc0-b338-42d2e7e9c163 2020-04-29 21:20:00 0&lt;BR /&gt;
00af8f04-88fc-4dc0-b338-42d2e7e9c163 2020-04-29 22:00:00 0&lt;BR /&gt;
00af8f04-88fc-4dc0-b338-42d2e7e9c163 2020-04-29 22:20:00 0&lt;BR /&gt;
00af8f04-88fc-4dc0-b338-42d2e7e9c163 2020-04-29 22:40:00 0&lt;/P&gt;

&lt;P&gt;expected result should be&lt;BR /&gt;
Osm_zone_id _time ds_count&lt;BR /&gt;
00af8f04-88fc-4dc0-b338-42d2e7e9c163 2020-04-29 21:20:00 0&lt;BR /&gt;
00af8f04-88fc-4dc0-b338-42d2e7e9c163 2020-04-29 22:00:00 0&lt;BR /&gt;
00af8f04-88fc-4dc0-b338-42d2e7e9c163 2020-04-29 22:10:00 1&lt;BR /&gt;
00af8f04-88fc-4dc0-b338-42d2e7e9c163 2020-04-29 22:20:00 0&lt;BR /&gt;
00af8f04-88fc-4dc0-b338-42d2e7e9c163 2020-04-29 22:40:00 0&lt;/P&gt;

&lt;P&gt;Which are empty osm_zone_id also I want that time bucket&lt;/P&gt;

&lt;P&gt;I am trying with cross join also&lt;/P&gt;

&lt;P&gt;s | bin _time span=1h | fields _time | join max=0 [search index="us_west_prod_power_platform" sourcetype="spark:metric" metricName="HRTBT_LHIST_METRIC_DD" host="emr-prod-distributor" | spath output=osm_zone_id path=dimensions{2}.value | dedup osm_zone_id | fields osm_zone_id] | table _time, osm_zone_id&lt;/P&gt;

&lt;P&gt;Here, _time and osm_zone_id should be null ,even there is no osm_zone_id I want to make that count is 0&lt;/P&gt;

&lt;P&gt;Please verify.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 05:10:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/filtering-in-search-also-that-filter-value-display-one-of-the/m-p/488663#M140356</guid>
      <dc:creator>manibattula</dc:creator>
      <dc:date>2020-09-30T05:10:51Z</dc:date>
    </item>
    <item>
      <title>Re: filtering in search also that filter value display one of the filed of stats or table column</title>
      <link>https://community.splunk.com/t5/Splunk-Search/filtering-in-search-also-that-filter-value-display-one-of-the/m-p/488664#M140357</link>
      <description>&lt;P&gt;This should be needed &lt;CODE&gt;timechart&lt;/CODE&gt;&lt;BR /&gt;
I can't make the query without logs. &lt;/P&gt;

&lt;P&gt;good luck.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Apr 2020 07:55:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/filtering-in-search-also-that-filter-value-display-one-of-the/m-p/488664#M140357</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-04-30T07:55:27Z</dc:date>
    </item>
  </channel>
</rss>

