<?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: Can you help on 2 similar requests that don't have the same results? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Can-you-help-on-2-similar-requests-that-don-t-have-the-same/m-p/384603#M42770</link>
    <description>&lt;P&gt;In the second query if you use only "eventtype=NATCO" (instead of "eventtype=Flag OR eventtype=NATCO") do you have the same result?&lt;/P&gt;</description>
    <pubDate>Thu, 03 Jan 2019 16:50:45 GMT</pubDate>
    <dc:creator>andreacorvini</dc:creator>
    <dc:date>2019-01-03T16:50:45Z</dc:date>
    <item>
      <title>Can you help on 2 similar requests that don't have the same results?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Can-you-help-on-2-similar-requests-that-don-t-have-the-same/m-p/384600#M42767</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;

&lt;P&gt;I use two requests that are almost the same.&lt;/P&gt;

&lt;P&gt;First request :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;eventtype=Flag OR eventtype=Model 
| rex "Model=(?&amp;lt;model&amp;gt;.*)" 
| stats values(model) as Model by host  
| stats dc(host) as host by Model 
| sort -model limit=5
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This request doesn't return values because the eventtype=flag,which corresponds to index="windows-fr" sourcetype="tools:flags" filename="TOTO*"  is not respected&lt;/P&gt;

&lt;P&gt;Second request&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;   eventtype=Flag OR eventtype=NATCO
    | eval NATCO=if(key_path="\\registry\\machine\\software\\wow6432node\\xx\\master\\ConfigurationCountry",data, null)
    | stats values(NATCO) as NATCO by host 
    | stats dc(host) as host by NATCO | sort -NATCO limit=5
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I have a value for these request even if I also use the eventtype=Flag &lt;/P&gt;

&lt;P&gt;Normally it should be also empty&lt;/P&gt;

&lt;P&gt;what is the problem please?&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jan 2019 08:11:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Can-you-help-on-2-similar-requests-that-don-t-have-the-same/m-p/384600#M42767</guid>
      <dc:creator>jip31</dc:creator>
      <dc:date>2019-01-03T08:11:21Z</dc:date>
    </item>
    <item>
      <title>Re: Can you help on 2 similar requests that don't have the same results?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Can-you-help-on-2-similar-requests-that-don-t-have-the-same/m-p/384601#M42768</link>
      <description>&lt;P&gt;eventtype=Flag &lt;STRONG&gt;OR&lt;/STRONG&gt; eventtype=NATCO &lt;/P&gt;

&lt;P&gt;If eventtype=NATCO returns events, it should be normal that you have some results, shouldn't it ? &lt;/P&gt;</description>
      <pubDate>Thu, 03 Jan 2019 09:17:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Can-you-help-on-2-similar-requests-that-don-t-have-the-same/m-p/384601#M42768</guid>
      <dc:creator>raphgoncalves</dc:creator>
      <dc:date>2019-01-03T09:17:19Z</dc:date>
    </item>
    <item>
      <title>Re: Can you help on 2 similar requests that don't have the same results?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Can-you-help-on-2-similar-requests-that-don-t-have-the-same/m-p/384602#M42769</link>
      <description>&lt;P&gt;NO&lt;BR /&gt;
eventtype returns also results but &lt;BR /&gt;
the stats(values) is used for doing a match between the two eventtype&lt;BR /&gt;
So if eventtype= Flag is KO i have to have no results in others eventtype&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jan 2019 09:55:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Can-you-help-on-2-similar-requests-that-don-t-have-the-same/m-p/384602#M42769</guid>
      <dc:creator>jip31</dc:creator>
      <dc:date>2019-01-03T09:55:23Z</dc:date>
    </item>
    <item>
      <title>Re: Can you help on 2 similar requests that don't have the same results?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Can-you-help-on-2-similar-requests-that-don-t-have-the-same/m-p/384603#M42770</link>
      <description>&lt;P&gt;In the second query if you use only "eventtype=NATCO" (instead of "eventtype=Flag OR eventtype=NATCO") do you have the same result?&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jan 2019 16:50:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Can-you-help-on-2-similar-requests-that-don-t-have-the-same/m-p/384603#M42770</guid>
      <dc:creator>andreacorvini</dc:creator>
      <dc:date>2019-01-03T16:50:45Z</dc:date>
    </item>
    <item>
      <title>Re: Can you help on 2 similar requests that don't have the same results?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Can-you-help-on-2-similar-requests-that-don-t-have-the-same/m-p/384604#M42771</link>
      <description>&lt;P&gt;Yes I have the same result&lt;/P&gt;</description>
      <pubDate>Fri, 04 Jan 2019 06:31:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Can-you-help-on-2-similar-requests-that-don-t-have-the-same/m-p/384604#M42771</guid>
      <dc:creator>jip31</dc:creator>
      <dc:date>2019-01-04T06:31:24Z</dc:date>
    </item>
    <item>
      <title>Re: Can you help on 2 similar requests that don't have the same results?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Can-you-help-on-2-similar-requests-that-don-t-have-the-same/m-p/384605#M42772</link>
      <description>&lt;P&gt;in fact I want to have a result if the condition mentionned in eventtype=Flag &lt;BR /&gt;
(index="windows-fr" sourcetype="tools:flags" filename="TOTO*)" is OK&lt;BR /&gt;
If the condition is KO I dont want results&lt;/P&gt;</description>
      <pubDate>Fri, 04 Jan 2019 06:39:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Can-you-help-on-2-similar-requests-that-don-t-have-the-same/m-p/384605#M42772</guid>
      <dc:creator>jip31</dc:creator>
      <dc:date>2019-01-04T06:39:00Z</dc:date>
    </item>
    <item>
      <title>Re: Can you help on 2 similar requests that don't have the same results?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Can-you-help-on-2-similar-requests-that-don-t-have-the-same/m-p/384606#M42773</link>
      <description>&lt;P&gt;Try this instead for your first search (which has several mistakes):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=* AND (eventtype=Flag OR eventtype=Model)
| rex "Model=(?&amp;lt;model&amp;gt;.*)" 
| eval model=coalesce(model, "WAS_NULL")
| stats dc(host) AS host by Model 
| sort 5 -Model
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 10 Jan 2019 01:01:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Can-you-help-on-2-similar-requests-that-don-t-have-the-same/m-p/384606#M42773</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-01-10T01:01:36Z</dc:date>
    </item>
  </channel>
</rss>

