<?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: timechart conditional result in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/timechart-conditional-result/m-p/528120#M149104</link>
    <description>&lt;P&gt;What about just getting the first and latest and compare them ?&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=my_index earliest=".." latest=".."
| stats earliest(Signatur) as sig_orig,latest(Signatur) as sig_current by name
|eval Identical = if(sig_org == sig_current,"Yes","No")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 05 Nov 2020 14:01:13 GMT</pubDate>
    <dc:creator>renjith_nair</dc:creator>
    <dc:date>2020-11-05T14:01:13Z</dc:date>
    <item>
      <title>timechart conditional result</title>
      <link>https://community.splunk.com/t5/Splunk-Search/timechart-conditional-result/m-p/528095#M149092</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i have objects with names that all carry a unique and constant "Software-Signature" with them.&lt;/P&gt;&lt;P&gt;This signature is supposed to never change. And i know that it is in its original state at some timestamp.&lt;/P&gt;&lt;P&gt;Now, i want to create a dashboard that displays the objects current signature, its original signature and if they are identical.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;makeresults| eval Identical = if(sig_orig = sig_current, 1, 0) | table name sig_orig sig_current Identical 
|append[ 
search index=my_index earliest=".." latest=".."| stats values(Signatur) as sig_orig by name 
|appendcols [
search index=my_index | stats latest(Signatur) as sig_current by name
]
]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This works besides the fact that the field identical displays nothing.&lt;/P&gt;&lt;P&gt;Assuming, there is deviation and you find a 0, as in the two signatures are not identical. You may want to find when that occured, so i would like to make timechart of the identical-field by name.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance, and i hope i managed to describe the task clearly.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Nov 2020 11:16:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/timechart-conditional-result/m-p/528095#M149092</guid>
      <dc:creator>light_of_sirius</dc:creator>
      <dc:date>2020-11-05T11:16:06Z</dc:date>
    </item>
    <item>
      <title>Re: timechart conditional result</title>
      <link>https://community.splunk.com/t5/Splunk-Search/timechart-conditional-result/m-p/528120#M149104</link>
      <description>&lt;P&gt;What about just getting the first and latest and compare them ?&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=my_index earliest=".." latest=".."
| stats earliest(Signatur) as sig_orig,latest(Signatur) as sig_current by name
|eval Identical = if(sig_org == sig_current,"Yes","No")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Nov 2020 14:01:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/timechart-conditional-result/m-p/528120#M149104</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2020-11-05T14:01:13Z</dc:date>
    </item>
    <item>
      <title>Re: timechart conditional result</title>
      <link>https://community.splunk.com/t5/Splunk-Search/timechart-conditional-result/m-p/528490#M149237</link>
      <description>&lt;P&gt;Thx sorry for the late response.&lt;/P&gt;&lt;P&gt;The original signatures lay back quite some time, so i wanted to avoid having to do search such a large interval.&lt;/P&gt;&lt;P&gt;Additionally i would not really see the logic being applicable to a timechart.&lt;/P&gt;&lt;P&gt;Say i want to use the signatures of one day 2 years ago as my reference point and i want to compare if all the different objects had their original signature in the last week, binned daywise and by "object_name".&lt;/P&gt;&lt;P&gt;If you unterstand want i am trying to say.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyway my solution for now is&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=my_index name=* | stats latest(Signatur) as sig_c by name
|appendcols [
search index=my_index earliest="11/4/2019:08:00:00" latest="11/4/2019:18:00:00" name=*| stats latest(Signatur) as sig_o by name
]
| eval id = if(sig_o==sig_c, "iO", "niO")| table name id&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And for the timechart&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=my_index name="001"| timechart span=1d latest(Signatur) as sig_c
|appendcols [
search index=my_index earliest="11/4/2020:08:00:00" latest="11/4/2020:10:00:00" name="001"| stats latest(Signatur) as sig_o
]
| filldown sig_o
| eval id = if(sig_o==sig_c, 1, 0)| timechart span=1d values(id) as "iO/niO"&lt;/LI-CODE&gt;&lt;P&gt;But this does not support the desired groub &lt;STRONG&gt;by name&lt;/STRONG&gt; yet.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Nov 2020 08:10:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/timechart-conditional-result/m-p/528490#M149237</guid>
      <dc:creator>light_of_sirius</dc:creator>
      <dc:date>2020-11-09T08:10:48Z</dc:date>
    </item>
  </channel>
</rss>

