<?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: Want to ignore some fields in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Want-to-ignore-some-fields/m-p/707001#M239180</link>
    <description>&lt;P&gt;Would you be able to help me on one more thing please !!!&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a Number display dashboard which represent the BGP flap details as # Device_name &amp;amp; #BGP peer IP , however I cannot add the timing when the BGP flap on Number display&lt;/P&gt;&lt;P&gt;Current Query :&amp;nbsp;index="network" %BGP-5 *clip* | rex field=_raw "^(?:[^ \n]* ){4}(?P&amp;lt;Device_name&amp;gt;[^:]+)" | dedup Device_name,src_ip | stats count by Device_name,src_ip,state_to | eval primarycolor=case(state_to="Down", "#D93F3C", state_to="Up", "#31A35F") | eval secondarycolor=primarycolor&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ashish0405_1-1734420919113.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/33875i11F6A7CD5234043D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ashish0405_1-1734420919113.png" alt="Ashish0405_1-1734420919113.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there something we can add to display flap time in the same number display&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 17 Dec 2024 07:36:14 GMT</pubDate>
    <dc:creator>Ashish0405</dc:creator>
    <dc:date>2024-12-17T07:36:14Z</dc:date>
    <item>
      <title>Want to ignore some fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Want-to-ignore-some-fields/m-p/706929#M239160</link>
      <description>&lt;P&gt;Hi Team,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In below query I don't want to show up the result as "Up" in state_to field, I just want to see data with down state , also it not possible to use (exclude operator&amp;nbsp;state_to!=Up ) because it is showing all down results which is not my aim.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please help and suggest !&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;My query :&amp;nbsp;&lt;/STRONG&gt;&lt;/U&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;index="network" %BGP-5 *clip* | dedup src_ip | stats count by state_to,Device_name,src_ip&lt;/LI-CODE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ashish0405_3-1734369917343.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/33870i17537769F96B56B9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ashish0405_3-1734369917343.png" alt="Ashish0405_3-1734369917343.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;with exclude result: ( which I dont want)&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ashish0405_2-1734369875042.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/33869i3BC7BA3B1645DACA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ashish0405_2-1734369875042.png" alt="Ashish0405_2-1734369875042.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;My expected result/AIM :&amp;nbsp; it will just show the result the devices which are down at the moment and dont want see the UP result&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ashish0405_4-1734370061163.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/33871iD43964826A3F73D8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ashish0405_4-1734370061163.png" alt="Ashish0405_4-1734370061163.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;AIM :&amp;nbsp; With the help of query&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Dec 2024 22:43:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Want-to-ignore-some-fields/m-p/706929#M239160</guid>
      <dc:creator>Ashish0405</dc:creator>
      <dc:date>2024-12-16T22:43:37Z</dc:date>
    </item>
    <item>
      <title>Re: Want to ignore some fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Want-to-ignore-some-fields/m-p/706938#M239164</link>
      <description>&lt;P&gt;Try excluding Up states at the end rather than at the beginning.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index="network" %BGP-5 *clip* 
| dedup src_ip 
| stats count by state_to,Device_name,src_ip
| where state_to!="Up"&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 16 Dec 2024 19:12:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Want-to-ignore-some-fields/m-p/706938#M239164</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2024-12-16T19:12:45Z</dc:date>
    </item>
    <item>
      <title>Re: Want to ignore some fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Want-to-ignore-some-fields/m-p/706962#M239168</link>
      <description>&lt;P&gt;Overall logic of your search is flawed. You firstly remove a lot of data with dedup and then try to stats over hugely incomplete data set.&lt;/P&gt;&lt;P&gt;What is it you're trying to do (in your own words, without SPL)?&lt;/P&gt;</description>
      <pubDate>Mon, 16 Dec 2024 21:46:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Want-to-ignore-some-fields/m-p/706962#M239168</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2024-12-16T21:46:35Z</dc:date>
    </item>
    <item>
      <title>Re: Want to ignore some fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Want-to-ignore-some-fields/m-p/706989#M239177</link>
      <description>&lt;P&gt;Wow, the expected result popped up !!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks !!!!, I will do&amp;nbsp; some testing&lt;/P&gt;</description>
      <pubDate>Tue, 17 Dec 2024 06:53:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Want-to-ignore-some-fields/m-p/706989#M239177</guid>
      <dc:creator>Ashish0405</dc:creator>
      <dc:date>2024-12-17T06:53:01Z</dc:date>
    </item>
    <item>
      <title>Re: Want to ignore some fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Want-to-ignore-some-fields/m-p/706992#M239179</link>
      <description>&lt;P&gt;Again - it might be expected but is it the correct result?&lt;/P&gt;&lt;P&gt;Consider this example run-anywhere search&lt;/P&gt;&lt;PRE&gt;| makeresults format=csv data="a,b,c&lt;BR /&gt;2,3,3&lt;BR /&gt;1,2,3&lt;BR /&gt;2,2,2&lt;BR /&gt;1,3,2"&lt;BR /&gt;| dedup c&lt;BR /&gt;| stats count by a b c&lt;/PRE&gt;&lt;P&gt;Run it, write down the results.&lt;/P&gt;&lt;P&gt;Now run the same search but with a reordered input mockup data&lt;/P&gt;&lt;PRE&gt;| makeresults format=csv data="a,b,c&lt;BR /&gt;1,2,3&lt;BR /&gt;2,3,3&lt;BR /&gt;1,3,2&lt;BR /&gt;2,2,2"&lt;BR /&gt;| dedup c&lt;BR /&gt;| stats count by a b c&lt;/PRE&gt;&lt;P&gt;As you can see, the data on which you're operating is the same, just in a different order and the results are completely different. So you might want to rethink your search logic.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Dec 2024 07:03:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Want-to-ignore-some-fields/m-p/706992#M239179</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2024-12-17T07:03:54Z</dc:date>
    </item>
    <item>
      <title>Re: Want to ignore some fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Want-to-ignore-some-fields/m-p/707001#M239180</link>
      <description>&lt;P&gt;Would you be able to help me on one more thing please !!!&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a Number display dashboard which represent the BGP flap details as # Device_name &amp;amp; #BGP peer IP , however I cannot add the timing when the BGP flap on Number display&lt;/P&gt;&lt;P&gt;Current Query :&amp;nbsp;index="network" %BGP-5 *clip* | rex field=_raw "^(?:[^ \n]* ){4}(?P&amp;lt;Device_name&amp;gt;[^:]+)" | dedup Device_name,src_ip | stats count by Device_name,src_ip,state_to | eval primarycolor=case(state_to="Down", "#D93F3C", state_to="Up", "#31A35F") | eval secondarycolor=primarycolor&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ashish0405_1-1734420919113.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/33875i11F6A7CD5234043D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ashish0405_1-1734420919113.png" alt="Ashish0405_1-1734420919113.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there something we can add to display flap time in the same number display&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Dec 2024 07:36:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Want-to-ignore-some-fields/m-p/707001#M239180</guid>
      <dc:creator>Ashish0405</dc:creator>
      <dc:date>2024-12-17T07:36:14Z</dc:date>
    </item>
    <item>
      <title>Re: Want to ignore some fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Want-to-ignore-some-fields/m-p/707005#M239182</link>
      <description>&lt;P&gt;Yes, thank you for these details,&lt;/P&gt;&lt;P&gt;I guess if I sort the output with time ( # sort _time) the result will be rearranged as per date &amp;amp; time, AM I CORRECT ?&lt;/P&gt;&lt;P&gt;So if with the help of sort _time data get re-arranged then the latest one result will be either #UP or #DOWN, then the AIM is achieved&lt;/P&gt;</description>
      <pubDate>Tue, 17 Dec 2024 07:49:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Want-to-ignore-some-fields/m-p/707005#M239182</guid>
      <dc:creator>Ashish0405</dc:creator>
      <dc:date>2024-12-17T07:49:53Z</dc:date>
    </item>
    <item>
      <title>Re: Want to ignore some fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Want-to-ignore-some-fields/m-p/707008#M239184</link>
      <description>&lt;P&gt;This is a different issue - more visualization-related. Please post it as a new thread in a proper forum section to keep this forum tidy &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Dec 2024 07:51:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Want-to-ignore-some-fields/m-p/707008#M239184</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2024-12-17T07:51:52Z</dc:date>
    </item>
    <item>
      <title>Re: Want to ignore some fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Want-to-ignore-some-fields/m-p/707010#M239185</link>
      <description>&lt;P&gt;Thanks I will post in new thread&lt;/P&gt;</description>
      <pubDate>Tue, 17 Dec 2024 08:02:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Want-to-ignore-some-fields/m-p/707010#M239185</guid>
      <dc:creator>Ashish0405</dc:creator>
      <dc:date>2024-12-17T08:02:22Z</dc:date>
    </item>
    <item>
      <title>Re: Want to ignore some fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Want-to-ignore-some-fields/m-p/707021#M239188</link>
      <description>&lt;P&gt;Well, "correct" depends on what you want to achieve. Often dedup is not needed if you're going to stats the data right after it. And it's a tricky command and often misunderstood and misused. It filters out from your results all further events with a particular value of a given field (or a set of values if you use it on more fields) regardless of what the remaining content of those events are.&lt;/P&gt;&lt;P&gt;So if you had, for example, logs containing fields &lt;EM&gt;criticality&lt;/EM&gt; (being one of INFO, WARN, DEBUG, ERR or CRIT) and &lt;EM&gt;message&lt;/EM&gt; after using | dedup criticality you'd only get one INFO, one DEBUG and so on - the first one Splunk encountered in your data. You'd lose all subsequent INFOs, DEBUGs and so on even though they had different &lt;EM&gt;message&lt;/EM&gt; value. So you'd be aware that - for example - there was a CPU usage spike but wouldn't know that your system was also out of disk space and over the temperature threshold.&lt;/P&gt;&lt;P&gt;Dedup is really rarely useful. For me it works only as an "extended head".&lt;/P&gt;</description>
      <pubDate>Tue, 17 Dec 2024 11:29:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Want-to-ignore-some-fields/m-p/707021#M239188</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2024-12-17T11:29:27Z</dc:date>
    </item>
    <item>
      <title>Re: Want to ignore some fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Want-to-ignore-some-fields/m-p/707102#M239210</link>
      <description>&lt;P&gt;Thank you for the details, this will help me with current dashboard&lt;/P&gt;</description>
      <pubDate>Wed, 18 Dec 2024 05:57:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Want-to-ignore-some-fields/m-p/707102#M239210</guid>
      <dc:creator>Ashish0405</dc:creator>
      <dc:date>2024-12-18T05:57:11Z</dc:date>
    </item>
  </channel>
</rss>

