<?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: Why is my search not returning any results? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-search-not-returning-any-results/m-p/320183#M95689</link>
    <description>&lt;P&gt;Still the same result &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 19 Jul 2017 20:01:08 GMT</pubDate>
    <dc:creator>rkaakaty</dc:creator>
    <dc:date>2017-07-19T20:01:08Z</dc:date>
    <item>
      <title>Why is my search not returning any results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-search-not-returning-any-results/m-p/320178#M95684</link>
      <description>&lt;P&gt;Can anyone tell me why I am not returning any results?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=nessus cve=*
| eval CVSS_SCORE = cvss_base_score + cvss_temporal_score
| stats list(host-ip) as host-ip, list(IP) as IP count(host-ip) by ID 
| rename id as ID, cve as CVE, plugin_name as Plugin_Name, count(host-ip) as HOSTS
| table ID, Plugin_Name, CVSS_SCORE, HOSTS
| sort - CVSS_SCORE
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2017 19:26:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-my-search-not-returning-any-results/m-p/320178#M95684</guid>
      <dc:creator>rkaakaty</dc:creator>
      <dc:date>2017-07-19T19:26:12Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my search not returning any results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-search-not-returning-any-results/m-p/320179#M95685</link>
      <description>&lt;P&gt;you need to include CVSS_SCORE in your stats command, you are not allowed to table it without bringing it forward. you can also rename your count(host-ip) in your stats command.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=nessus cve=*
 | eval CVSS_SCORE = cvss_base_score + cvss_temporal_score| rename id as ID, cve as CVE 
 | stats list(host-ip) as host-ip, list(IP) as IP count(host-ip) as HOSTS sum(CVSS_SCORE) as CVSS_SCORE values(plugin_name) as Plugin_Name by ID 
 | table ID, Plugin_Name, CVSS_SCORE, HOSTS
 | sort - CVSS_SCORE
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 19 Jul 2017 19:37:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-my-search-not-returning-any-results/m-p/320179#M95685</guid>
      <dc:creator>cmerriman</dc:creator>
      <dc:date>2017-07-19T19:37:13Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my search not returning any results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-search-not-returning-any-results/m-p/320180#M95686</link>
      <description>&lt;P&gt;Give this a try made a change to by ID since it seems to be id then you rename to ID&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index=nessus cve=*
 | eval CVSS_SCORE = cvss_base_score + cvss_temporal_score
 | stats list(host-ip) as host-ip, list(IP) as IP count(host-ip) by id 
 | rename id as ID, cve as CVE, plugin_name as Plugin_Name, count(host-ip) as HOSTS
 | table ID, Plugin_Name, CVSS_SCORE, HOSTS
 | sort - CVSS_SCORE
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 19 Jul 2017 19:37:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-my-search-not-returning-any-results/m-p/320180#M95686</guid>
      <dc:creator>Grumpalot</dc:creator>
      <dc:date>2017-07-19T19:37:42Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my search not returning any results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-search-not-returning-any-results/m-p/320181#M95687</link>
      <description>&lt;P&gt;Thank you,&lt;/P&gt;

&lt;P&gt;Now i've run into a problem of only getting 0's as my HOSTS&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2017 19:52:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-my-search-not-returning-any-results/m-p/320181#M95687</guid>
      <dc:creator>rkaakaty</dc:creator>
      <dc:date>2017-07-19T19:52:59Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my search not returning any results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-search-not-returning-any-results/m-p/320182#M95688</link>
      <description>&lt;P&gt;try this removing the two &lt;CODE&gt;list&lt;/CODE&gt; commands or renaming the &lt;CODE&gt;list(host-ip) as host-ip&lt;/CODE&gt; to  &lt;CODE&gt;list(host-ip) as host-ips&lt;/CODE&gt; to see if that works. you're counting host-ip after putting it into a list and naming it that field name.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2017 19:56:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-my-search-not-returning-any-results/m-p/320182#M95688</guid>
      <dc:creator>cmerriman</dc:creator>
      <dc:date>2017-07-19T19:56:47Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my search not returning any results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-search-not-returning-any-results/m-p/320183#M95689</link>
      <description>&lt;P&gt;Still the same result &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2017 20:01:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-my-search-not-returning-any-results/m-p/320183#M95689</guid>
      <dc:creator>rkaakaty</dc:creator>
      <dc:date>2017-07-19T20:01:08Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my search not returning any results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-search-not-returning-any-results/m-p/320184#M95690</link>
      <description>&lt;P&gt;one other thing to try:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index=nessus cve=*
  | eval CVSS_SCORE = cvss_base_score + cvss_temporal_score| rename id as ID, cve as CVE "host-ip" as hostip
  | stats list(hostip) as hostips, list(IP) as IP count(hostip) as HOSTS sum(CVSS_SCORE) as CVSS_SCORE values(plugin_name) as Plugin_Name by ID 
  | table ID, Plugin_Name, CVSS_SCORE, HOSTS
  | sort - CVSS_SCORE
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 19 Jul 2017 20:03:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-my-search-not-returning-any-results/m-p/320184#M95690</guid>
      <dc:creator>cmerriman</dc:creator>
      <dc:date>2017-07-19T20:03:33Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my search not returning any results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-search-not-returning-any-results/m-p/320185#M95691</link>
      <description>&lt;P&gt;Unfortunately I am still getting 0 values for HOSTS &lt;/P&gt;</description>
      <pubDate>Thu, 20 Jul 2017 15:02:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-my-search-not-returning-any-results/m-p/320185#M95691</guid>
      <dc:creator>rkaakaty</dc:creator>
      <dc:date>2017-07-20T15:02:43Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my search not returning any results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-search-not-returning-any-results/m-p/320186#M95692</link>
      <description>&lt;P&gt;I think I see what the problem is; you have two searches that need to take place to match on ID from Plugin and plugin_ID from the scans. Give this search a try, it may take a bit longer. I'm going to use some of @cmerriman 's written code hope you don't mind.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=nessus cve=*  
| eval ID=coalesce(id,plugin_id) 
| eval CVSS_SCORE = cvss_base_score + cvss_temporal_score
| rename cve as CVE
| stats sum(CVSS_SCORE) as CVSS_SCORE values(plugin_name) as Plugin_Name by ID
| appendcols [search index=nessus 
| rename host-ip as hostip 
| stats list(hostip) as hostips, list(IP) as IP, count(hostip) as HOSTS by plugin_id] 
| table ID, Plugin_Name, CVSS_SCORE, HOSTS 
| sort - CVSS_SCORE
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 20 Jul 2017 16:40:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-my-search-not-returning-any-results/m-p/320186#M95692</guid>
      <dc:creator>Grumpalot</dc:creator>
      <dc:date>2017-07-20T16:40:24Z</dc:date>
    </item>
  </channel>
</rss>

