<?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 scheduled search producing a count of zero, but get results when I run the search manually? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-scheduled-search-producing-a-count-of-zero-but-get/m-p/209250#M61135</link>
    <description>&lt;P&gt;No I will not be able to login using the user ID who is the owner of the search. I hope he should be able to see the index and lookup detail as he is having the same role as I have and he is the actual owner of the saved search.&lt;/P&gt;

&lt;P&gt;just share on pastebin ?  i do not have an idea about the paste bin can you tell me how do i share this using paste bin..&lt;/P&gt;

&lt;P&gt;thanks &lt;/P&gt;</description>
    <pubDate>Sat, 05 Nov 2016 19:21:42 GMT</pubDate>
    <dc:creator>Hemnaath</dc:creator>
    <dc:date>2016-11-05T19:21:42Z</dc:date>
    <item>
      <title>Why is my scheduled search producing a count of zero, but get results when I run the search manually?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-scheduled-search-producing-a-count-of-zero-but-get/m-p/209239#M61124</link>
      <description>&lt;P&gt;Hi All,  &lt;/P&gt;

&lt;P&gt;Currently I am facing an issue with scheduled reports. The scheduled job is getting executed as per the cron job set for every two hours, but we are not seeing any events getting triggered.&lt;/P&gt;

&lt;P&gt;On splunk --&amp;gt;  settings--&amp;gt; Searches, reports, and alerts, --&amp;gt;  saved search --&amp;gt;  under "actions" row  --&amp;gt; View recent --&amp;gt;  could see 0 count under Events.  When clicked on the saved search, could see No Result found. But when I ran the search, manually I am getting the result, so not sure where the problem is.&lt;/P&gt;

&lt;P&gt;Splunk Version: 6.2.1 &lt;BR /&gt;
Scheduled saved search Details &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;earliest=-60m source="*dhcpd.log" Host=H*  DHCPACK lease-duration OR RENEW | localop | lookup qualys_hostlist.csv NETBIOS AS Host OUTPUT LAST_SCAN_DATETIME | eval LAST_SCAN_DATETIME =if(isnull(LAST_SCAN_DATETIME ),"2000-01-01t00:00:00z", LAST_SCAN_DATETIME ) | mvexpand LAST_SCAN_DATETIME | eval LAST_SCAN_DATETIME =strptime(LAST_SCAN_DATETIME,"%Y-%m-%dT%H:%M:%SZ")|dedup Host | head 10 | stats last(LAST_SCAN_DATETIME ) as LAST_SCAN_DATETIME by Host IP | table Host IP LAST_SCAN_DATETIME | where LAST_SCAN_DATETIME   &amp;lt; relative_time(now(),"-30d")   | table Host IP LAST_SCAN_DATETIME | stats delim="+" Values(IP) AS scanning | mvcombine scanning | eval scanners="QUALYS" | eval title="Test+Assetscanning+TH" | localop | lookup qualysscanlookup title scanners scanning OUTPUT results 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Time Range --&amp;gt;  Start time and Finish time are not set &lt;BR /&gt;
Acceleration --&amp;gt; Not set&lt;BR /&gt;
Schedule and Alert --&amp;gt; Run on Cron Scheduled&lt;BR /&gt;&lt;BR /&gt;
&lt;CODE&gt;0 */2   *  *  *&lt;/CODE&gt; Every 2 hours, at the 0th min&lt;BR /&gt;
Run as --&amp;gt; Owner&lt;BR /&gt;
Alert Condition --&amp;gt; always &lt;BR /&gt;
Alert Mode --&amp;gt; Once per search &lt;BR /&gt;
Throttling --&amp;gt; Not set&lt;BR /&gt;
Expiration --&amp;gt; set as custom time&lt;BR /&gt;
Severity --&amp;gt; Medium &lt;BR /&gt;
Alert action --&amp;gt; Not set for any option under this &lt;BR /&gt;
Summary Indexing --&amp;gt; Not set &lt;/P&gt;

&lt;P&gt;As said in the beginning, for the comment, we are able to get an output when we execute the search manually, but when set in scheduled search it not generating any events. Kindly guide me how/where we are having an issue.&lt;/P&gt;

&lt;P&gt;thanks in advance. &lt;/P&gt;</description>
      <pubDate>Thu, 03 Nov 2016 16:56:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-my-scheduled-search-producing-a-count-of-zero-but-get/m-p/209239#M61124</guid>
      <dc:creator>Hemnaath</dc:creator>
      <dc:date>2016-11-03T16:56:11Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my scheduled search producing a count of zero, but get results when I run the search manually?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-scheduled-search-producing-a-count-of-zero-but-get/m-p/209240#M61125</link>
      <description>&lt;P&gt;Few observation/questions:&lt;/P&gt;

&lt;P&gt;1) you run the search every 2 hr but the query time range is last 60 min. There is a one hour period which you're not searching. In most cased, the frequency of the search and the time range are set in a way that you don't have gaps or overlap. You may want to look at that.&lt;BR /&gt;
2) When you're running the search manually, are you removing the earliest=-60m from your search and manually setting the time range same as that alert was considering?&lt;/P&gt;</description>
      <pubDate>Thu, 03 Nov 2016 17:20:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-my-scheduled-search-producing-a-count-of-zero-but-get/m-p/209240#M61125</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-11-03T17:20:52Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my scheduled search producing a count of zero, but get results when I run the search manually?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-scheduled-search-producing-a-count-of-zero-but-get/m-p/209241#M61126</link>
      <description>&lt;P&gt;thanks somesoni for quick response.&lt;/P&gt;

&lt;P&gt;1) you run the search every 2 hr but the query time range is last 60 min. There is a one hour period which you're not searching. In most cased, the frequency of the search and the time range are set in a way that you don't have gaps or overlap. You may want to look at that.&lt;/P&gt;

&lt;P&gt;Even I had set for every one hour  by choosing schedule type as Basic and set for 1 hour but no luck, still faced same issue.&lt;/P&gt;

&lt;P&gt;2) When you're running the search manually, are you removing the earliest=-60m from your search and manually setting the time range same as that alert was considering?&lt;/P&gt;

&lt;P&gt;No I am not removing it and at the same time keeping the time range to All time.  But getting the result. &lt;/P&gt;

&lt;P&gt;So not sure where exactly having an issue ? Kindly guide me on how to fix this issue. &lt;/P&gt;

&lt;P&gt;Note: Above splunk query should find the IPS that are not scanned for last 30 days and it should add it in a file which python script will initiate the qualys scan against those IP'S**.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Nov 2016 17:42:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-my-scheduled-search-producing-a-count-of-zero-but-get/m-p/209241#M61126</guid>
      <dc:creator>Hemnaath</dc:creator>
      <dc:date>2016-11-03T17:42:33Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my scheduled search producing a count of zero, but get results when I run the search manually?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-scheduled-search-producing-a-count-of-zero-but-get/m-p/209242#M61127</link>
      <description>&lt;P&gt;Do you have any errors in your search.log? Or any that come up when you click on view results for the saved search?&lt;/P&gt;</description>
      <pubDate>Fri, 04 Nov 2016 02:02:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-my-scheduled-search-producing-a-count-of-zero-but-get/m-p/209242#M61127</guid>
      <dc:creator>lquinn</dc:creator>
      <dc:date>2016-11-04T02:02:56Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my scheduled search producing a count of zero, but get results when I run the search manually?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-scheduled-search-producing-a-count-of-zero-but-get/m-p/209243#M61128</link>
      <description>&lt;P&gt;thanks lquinn, below are the partial logs taken from search.log &lt;/P&gt;

&lt;P&gt;11-04-2016 06:00:28.441 INFO  SearchParser - PARSING: search earliest=-60m source="&lt;EM&gt;dhcpd.log" Host=W&lt;/EM&gt; DHCPACK lease-duration OR RENEW |localop | lookup qualys_hostlist.csv  NETBIOS AS Host OUTPUT LAST_SCAN_DATETIME   | eval LAST_SCAN_DATETIME  = if(isnull(LAST_SCAN_DATETIME ),"2000-01-01T00:00:00Z",LAST_SCAN_DATETIME ) | mvexpand LAST_SCAN_DATETIME  | eval LAST_SCAN_DATETIME  = strptime(LAST_SCAN_DATETIME , "%Y-%m-%dT%H:%M:%SZ") | dedup Host | head 10\n| stats  last(LAST_SCAN_DATETIME ) as LAST_SCAN_DATETIME  by Host IP | table Host IP LAST_SCAN_DATETIME  | where LAST_SCAN_DATETIME  &amp;lt; relative_time(now(),"-30d") | table Host IP LAST_SCAN_DATETIME  | stats delim="+" values(IP) AS scanning | mvcombine scanning |  eval scanners="QUALYS" | eval title="Test+Assetscanning+TH" | localop | lookup qualysscanlookup title scanners scanning OUTPUT results&lt;/P&gt;

&lt;P&gt;11-04-2016 06:00:28.443 INFO  ISplunkDispatch - Not running in splunkd. Bundle replication not triggered.&lt;BR /&gt;
11-04-2016 06:00:28.563 INFO  UserManager - Setting user context: test001&lt;BR /&gt;
11-04-2016 06:00:28.564 INFO  UserManager - Done setting user context: NULL -&amp;gt; test001&lt;BR /&gt;
11-04-2016 06:00:28.569 WARN  IniFile - /opt/splunk/etc/apps/SA-lookups/default/props.conf, line 1: Cannot parse into key-value pair: **********************************&lt;BR /&gt;
11-04-2016 06:00:28.569 WARN  IniFile - /opt/splunk/etc/apps/SA-lookups/default/props.conf, line 2: Cannot parse into key-value pair: *********** ALL HOST LOOKUP&lt;BR /&gt;
11-04-2016 06:00:28.569 WARN  IniFile - /opt/splunk/etc/apps/SA-lookups/default/props.conf, line 3: Cannot parse into key-value pair: **********************************&lt;BR /&gt;
11-04-2016 06:00:28.645 INFO  CalcFieldProcessor - Found valid eval expression for field 'idm_flags' in stanza [default]': if(isnull(orig_host), "0", "1").if(isnull(src), "0", "1").if(isnull(dest), "0", "1").if(isnull(dvc), "0", "1").if(isnull(src_user), "0", "1").if(isnull(user), "0", "1")&lt;BR /&gt;
11-04-2016 06:00:28.646 INFO  CalcFieldProcessor - Found valid eval expression for field 'bytes' in stanza [(?::){0}bro_&lt;EM&gt;]': bytes_in + bytes_out&lt;BR /&gt;
11-04-2016 06:00:28.646 INFO  CalcFieldProcessor - Found valid eval expression for field 'duration' in stanza [(?::){0}bro_&lt;/EM&gt;]': if(isnum(duration),duration,null())&lt;BR /&gt;
11-04-2016 06:00:28.646 INFO  CalcFieldProcessor - Found valid eval expression for field 'idm_flags' in stanza [default]': if(isnull(orig_host), "0", "1").if(isnull(src), "0", "1").if(isnull(dest), "0", "1").if(isnull(dvc), "0", "1").if(isnull(src_user), "0", "1").if(isnull(user), "0", "1")&lt;BR /&gt;
11-04-2016 06:00:28.646 INFO  CalcFieldProcessor - Found valid eval expression for field 'idm_flags' in stanza [default]': if(isnull(orig_host), "0", "1").if(isnull(src), "0", "1").if(isnull(dest), "0", "1").if(isnull(dvc), "0", "1").if(isnull(src_user), "0", "1").if(isnull(user), "0", "1")&lt;BR /&gt;
11-04-2016 06:00:28.646 INFO  CalcFieldProcessor - Found valid eval expression for field 'idm_flags' in stanza [default]': if(isnull(orig_host), "0", "1").if(isnull(src), "0", "1").if(isnull(dest), "0", "1").if(isnull(dvc), "0", "1").if(isnull(src_user), "0", "1").if(isnull(user), "0", "1")&lt;BR /&gt;
11-04-2016 06:00:28.646 INFO  CalcFieldProcessor - Found valid eval expression for field 'idm_flags' in stanza [default]': if(isnull(orig_host), "0", "1").if(isnull(src), "0", "1").if(isnull(dest), "0", "1").if(isnull(dvc), "0", "1").if(isnull(src_user), "0", "1").if(isnull(user), "0", "1")&lt;BR /&gt;
11-04-2016 06:00:28.646 INFO  CalcFieldProcessor - Found valid eval expression for field 'idm_flags' in stanza [default]': if(isnull(orig_host), "0", "1").if(isnull(src), "0", "1").if(isnull(dest), "0", "1").if(isnull(dvc), "0", "1").if(isnull(src_user), "0", "1").if(isnull(user), "0", "1")&lt;BR /&gt;
11-04-2016 06:00:28.646 INFO  CalcFieldProcessor - Found valid eval expression for field 'idm_flags' in stanza [default]': if(isnull(orig_host), "0", "1").if(isnull(src), "0", "1").if(isnull(dest), "0", "1").if(isnull(dvc), "0", "1").if(isnull(src_user), "0", "1").if(isnull(user), "0", "1")&lt;BR /&gt;
11-04-2016 06:00:28.646 INFO  CalcFieldProcessor - Found valid eval expression for field 'idm_flags' in stanza [default]': if(isnull(orig_host), "0", "1").if(isnull(src), "0", "1").if(isnull(dest), "0", "1").if(isnull(dvc), "0", "1").if(isnull(src_user), "0", "1").if(isnull(user), "0", "1")&lt;/P&gt;

&lt;P&gt;And similarly when clicked the saved search, could see &lt;STRONG&gt;no result found&lt;/STRONG&gt; .&lt;/P&gt;

&lt;P&gt;Under Inspect Job --  Could see below message &lt;/P&gt;

&lt;P&gt;This search has completed did not match any event. The term specified in the highlighted potion of the search &lt;/P&gt;

&lt;P&gt;search earliest=-60m source="&lt;EM&gt;dhcpd.log" Host=W&lt;/EM&gt; DHCPACK lease-duration OR RENEW |localop | lookup qualys_hostlist.csv  NETBIOS AS Host OUTPUT LAST_SCAN_DATETIME   | eval LAST_SCAN_DATETIME  = if(isnull(LAST_SCAN_DATETIME ),"2000-01-01T00:00:00Z",LAST_SCAN_DATETIME ) | mvexpand LAST_SCAN_DATETIME  | eval LAST_SCAN_DATETIME  = strptime(LAST_SCAN_DATETIME , "%Y-%m-%dT%H:%M:%SZ") | dedup Host | head 10 | &lt;/P&gt;

&lt;P&gt;so kindly guide me how to fix this issue.&lt;BR /&gt;
thanks in advance.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 11:41:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-my-scheduled-search-producing-a-count-of-zero-but-get/m-p/209243#M61128</guid>
      <dc:creator>Hemnaath</dc:creator>
      <dc:date>2020-09-29T11:41:21Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my scheduled search producing a count of zero, but get results when I run the search manually?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-scheduled-search-producing-a-count-of-zero-but-get/m-p/209244#M61129</link>
      <description>&lt;P&gt;Hi All, Can anyone guide me on this on how to fix this issue ? As we are struggling to get a fix this for very long time ....&lt;/P&gt;

&lt;P&gt;thanks in advance &lt;/P&gt;</description>
      <pubDate>Sat, 05 Nov 2016 16:56:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-my-scheduled-search-producing-a-count-of-zero-but-get/m-p/209244#M61129</guid>
      <dc:creator>Hemnaath</dc:creator>
      <dc:date>2016-11-05T16:56:14Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my scheduled search producing a count of zero, but get results when I run the search manually?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-scheduled-search-producing-a-count-of-zero-but-get/m-p/209245#M61130</link>
      <description>&lt;P&gt;I would think about starting to walk back all the splunk-fu in that search to see if perhaps one of the fields you expect to exist, doesn't. Also, who is the owner of the search that ran? Do you have a knowledge object that needs to be shared? &lt;/P&gt;

&lt;P&gt;I believe you said that when you open the job that ran, it shows no results....what happens if start walking back the pipes to the 'base search' ?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;search earliest=-60m source="dhcpd.log" Host=W DHCPACK lease-duration OR RENEW |localop | lookup qualys_hostlist.csv NETBIOS AS Host OUTPUT LAST_SCAN_DATETIME | eval LAST_SCAN_DATETIME = if(isnull(LAST_SCAN_DATETIME ),"2000-01-01T00:00:00Z",LAST_SCAN_DATETIME ) | mvexpand LAST_SCAN_DATETIME | eval LAST_SCAN_DATETIME = strptime(LAST_SCAN_DATETIME , "%Y-%m-%dT%H:%M:%SZ") | dedup Host | head 10 |
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;What stands out to me is:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;eval LAST_SCAN_DATETIME = if(isnull(LAST_SCAN_DATETIME ),"2000-01-01T00:00:00Z",LAST_SCAN_DATETIME )
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;if only due to where splunk will place those results....but I mean could just be my ignorance of the data used in this search...&lt;/P&gt;

&lt;P&gt;But maybe lets start by just running this over the same window the sched job did:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; source="dhcpd.log" Host=W DHCPACK lease-duration OR RENEW 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Side note: what kind of environment is this search taking place in? Standalone? Distributed?&lt;/P&gt;</description>
      <pubDate>Sat, 05 Nov 2016 17:10:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-my-scheduled-search-producing-a-count-of-zero-but-get/m-p/209245#M61130</guid>
      <dc:creator>mattymo</dc:creator>
      <dc:date>2016-11-05T17:10:24Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my scheduled search producing a count of zero, but get results when I run the search manually?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-scheduled-search-producing-a-count-of-zero-but-get/m-p/209246#M61131</link>
      <description>&lt;P&gt;Hi mmodestino, thanks for your effort on this. &lt;/P&gt;

&lt;P&gt;earliest=-60m source="dhcpd.log" Host=W DHCPACK lease-duration OR RENEW |localop | lookup qualys_hostlist.csv NETBIOS AS Host OUTPUT LAST_SCAN_DATETIME | eval LAST_SCAN_DATETIME = if(isnull(LAST_SCAN_DATETIME ),"2000-01-01T00:00:00Z",LAST_SCAN_DATETIME ) | mvexpand LAST_SCAN_DATETIME | eval LAST_SCAN_DATETIME = strptime(LAST_SCAN_DATETIME , "%Y-%m-%dT%H:%M:%SZ") | dedup Host | head 10 | &lt;/P&gt;

&lt;P&gt;I am getting an output when I ran this search manually  but when the same search is scheduled it show no result, i am not sure where is the problem ?  Ours is distributed environment but how this will have an impact on this issue and we are using splunk 6.2.1  version.&lt;/P&gt;

&lt;P&gt;Results fetched  when we ran the search manually : &lt;/P&gt;

&lt;P&gt;Scanning           result                  scanner         Title &lt;BR /&gt;
IP address       success                 QUALYS      Test+Assetscanning+TH&lt;/P&gt;

&lt;P&gt;Kindly guide me how to fix this issue. &lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 11:41:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-my-scheduled-search-producing-a-count-of-zero-but-get/m-p/209246#M61131</guid>
      <dc:creator>Hemnaath</dc:creator>
      <dc:date>2020-09-29T11:41:03Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my scheduled search producing a count of zero, but get results when I run the search manually?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-scheduled-search-producing-a-count-of-zero-but-get/m-p/209247#M61132</link>
      <description>&lt;P&gt;What app is the saved search in??&lt;/P&gt;

&lt;P&gt;Are you running it manually using Admin?&lt;/P&gt;

&lt;P&gt;Does Admin own the alert?&lt;/P&gt;

&lt;P&gt;can you show the job and job inspector output of a working one vs a broken one?&lt;/P&gt;</description>
      <pubDate>Sat, 05 Nov 2016 18:07:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-my-scheduled-search-producing-a-count-of-zero-but-get/m-p/209247#M61132</guid>
      <dc:creator>mattymo</dc:creator>
      <dc:date>2016-11-05T18:07:09Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my scheduled search producing a count of zero, but get results when I run the search manually?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-scheduled-search-producing-a-count-of-zero-but-get/m-p/209248#M61133</link>
      <description>&lt;P&gt;1) What app is the saved search in??&lt;/P&gt;

&lt;P&gt;Its in Search app &lt;/P&gt;

&lt;P&gt;2)  Are you running it manually using Admin?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    Yes using admin privilege, but the scheduled search is saved / run with another user name and he also has the admin privilege.  
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;3)   Does Admin Own the alert ?&lt;/P&gt;

&lt;P&gt;I am not sure how to check this out &lt;/P&gt;

&lt;P&gt;4) Do you want the entire output of Inspector output as it has lots of date into it.&lt;/P&gt;

&lt;P&gt;thanks in advance .&lt;/P&gt;</description>
      <pubDate>Sat, 05 Nov 2016 18:26:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-my-scheduled-search-producing-a-count-of-zero-but-get/m-p/209248#M61133</guid>
      <dc:creator>Hemnaath</dc:creator>
      <dc:date>2016-11-05T18:26:36Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my scheduled search producing a count of zero, but get results when I run the search manually?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-scheduled-search-producing-a-count-of-zero-but-get/m-p/209249#M61134</link>
      <description>&lt;P&gt;can you login as the user who is running the search and see of they can see the index with the dhcp events...also can they run the lookup u are using?&lt;/P&gt;

&lt;P&gt;job inspector output probably has owner info...just share on pastebin... one working one failing&lt;/P&gt;</description>
      <pubDate>Sat, 05 Nov 2016 18:41:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-my-scheduled-search-producing-a-count-of-zero-but-get/m-p/209249#M61134</guid>
      <dc:creator>mattymo</dc:creator>
      <dc:date>2016-11-05T18:41:32Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my scheduled search producing a count of zero, but get results when I run the search manually?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-scheduled-search-producing-a-count-of-zero-but-get/m-p/209250#M61135</link>
      <description>&lt;P&gt;No I will not be able to login using the user ID who is the owner of the search. I hope he should be able to see the index and lookup detail as he is having the same role as I have and he is the actual owner of the saved search.&lt;/P&gt;

&lt;P&gt;just share on pastebin ?  i do not have an idea about the paste bin can you tell me how do i share this using paste bin..&lt;/P&gt;

&lt;P&gt;thanks &lt;/P&gt;</description>
      <pubDate>Sat, 05 Nov 2016 19:21:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-my-scheduled-search-producing-a-count-of-zero-but-get/m-p/209250#M61135</guid>
      <dc:creator>Hemnaath</dc:creator>
      <dc:date>2016-11-05T19:21:42Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my scheduled search producing a count of zero, but get results when I run the search manually?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-scheduled-search-producing-a-count-of-zero-but-get/m-p/209251#M61136</link>
      <description>&lt;P&gt;Job inspector details &lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;For the Job which got the output using my id&lt;/STRONG&gt; : &lt;/P&gt;

&lt;P&gt;This search has completed and has returned 1 result by scanning 419 events in 50.576 seconds.&lt;/P&gt;

&lt;P&gt;The following messages were returned by the search subsystem:&lt;/P&gt;

&lt;P&gt;INFO: Assuming implicit lookup table with filename 'qualys_hostlist.csv'.&lt;BR /&gt;
INFO: Your timerange was substituted based on your search string&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;For the job  which failed using user id&lt;/STRONG&gt; :&lt;/P&gt;

&lt;P&gt;This search has completed, but did not match any events. The terms specified in the highlighted portion of the search:&lt;/P&gt;

&lt;P&gt;search earliest=-60m source="&lt;EM&gt;dhcpd.log" Host=H&lt;/EM&gt;  DHCPACK lease-duration OR RENEW | localop | lookup qualys_hostlist.csv NETBIOS AS Host OUTPUT LAST_SCAN_DATETIME | eval LAST_SCAN_DATETIME =if(isnull(LAST_SCAN_DATETIME ),"2000-01-01t00:00:00z", LAST_SCAN_DATETIME ) | mvexpand LAST_SCAN_DATETIME | eval LAST_SCAN_DATETIME =strptime(LAST_SCAN_DATETIME,"%Y-%m-%dT%H:%M:%SZ")|dedup Host | head 10 | stats last(LAST_SCAN_DATETIME ) as LAST_SCAN_DATETIME by Host IP | table Host IP LAST_SCAN_DATETIME | where LAST_SCAN_DATETIME   &amp;lt; relative_time(now(),"-30d")   | table Host IP LAST_SCAN_DATETIME | stats delim="+" Values(IP) AS scanning | mvcombine scanning | eval scanners="QUALYS" | eval title="Test+Assetscanning+TH" | localop | lookup qualysscanlookup title scanners scanning OUTPUT results &lt;BR /&gt;
over the time range:&lt;/P&gt;

&lt;P&gt;11/5/16 2:00:00.000 PM – 11/5/16 3:00:36.929 PM&lt;BR /&gt;
did not return any data. Possible solutions are to:&lt;/P&gt;

&lt;P&gt;relax the primary search criteria&lt;BR /&gt;
widen the time range of the search&lt;BR /&gt;
check that the default search indexes for your account include the desired indexes&lt;BR /&gt;
This search is an instance of the saved search: Test+Assetscanning+TH.&lt;/P&gt;

&lt;P&gt;The following messages were returned by the search subsystem:&lt;/P&gt;

&lt;P&gt;INFO: Assuming implicit lookup table with filename 'qualys_hostlist.csv'.&lt;BR /&gt;
INFO: No matching fields exist&lt;BR /&gt;
INFO: Your timerange was substituted based on your search string&lt;/P&gt;

&lt;P&gt;thanks in advance &lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 11:41:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-my-scheduled-search-producing-a-count-of-zero-but-get/m-p/209251#M61136</guid>
      <dc:creator>Hemnaath</dc:creator>
      <dc:date>2020-09-29T11:41:43Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my scheduled search producing a count of zero, but get results when I run the search manually?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-scheduled-search-producing-a-count-of-zero-but-get/m-p/209252#M61137</link>
      <description>&lt;P&gt;I would suggest proving your assumptions about access, just to be sure. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;11/5/16 2:00:00.000 PM – 11/5/16 3:00:36.929 PM
did not return any data. Possible solutions are to:


relax the primary search criteria
widen the time range of the search
check that the default search indexes for your account include the desired indexes
This search is an instance of the saved search: Test+Assetscanning+TH.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Just like the job is telling you...relax the search criteria for that user...can they see output after running this search??? :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;source="dhcpd.log" Host=H* DHCPACK lease-duration OR RENEW
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;*Make sure those examples above are a typo....your host field needs to be host=H* not host=H (im sure they are...probably just answers removing the asteriks)&lt;/P&gt;

&lt;P&gt;INFO: Assuming implicit lookup table with filename 'qualys_hostlist.csv' means the lookup table isn't defined explicitly...might be a good idea to set the lookup table as a shared knowledge object.&lt;/P&gt;

&lt;P&gt;have the user try this search:&lt;/P&gt;

&lt;P&gt;| intputlookup qualys_hostlist.csv &lt;/P&gt;

&lt;P&gt;what do they get???&lt;/P&gt;</description>
      <pubDate>Sat, 05 Nov 2016 19:59:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-my-scheduled-search-producing-a-count-of-zero-but-get/m-p/209252#M61137</guid>
      <dc:creator>mattymo</dc:creator>
      <dc:date>2016-11-05T19:59:00Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my scheduled search producing a count of zero, but get results when I run the search manually?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-scheduled-search-producing-a-count-of-zero-but-get/m-p/209253#M61138</link>
      <description>&lt;P&gt;hi mmodestino thanks for your quick response on this issue. &lt;/P&gt;

&lt;P&gt;After executing this command &lt;STRONG&gt;| intputlookup qualys_hostlist.csv&lt;/STRONG&gt; , we could see all the fields that are present in the spread sheet available in  statistics in  table format.&lt;/P&gt;

&lt;P&gt;Kindly let me know how to share the search.log in answers.com as its having huge number of line it might occupy most of the characters. So is there a way,  where I can share the log details to others or to you, in order to diagnose this problem.&lt;/P&gt;

&lt;P&gt;thanks in advance. &lt;/P&gt;</description>
      <pubDate>Sun, 06 Nov 2016 17:31:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-my-scheduled-search-producing-a-count-of-zero-but-get/m-p/209253#M61138</guid>
      <dc:creator>Hemnaath</dc:creator>
      <dc:date>2016-11-06T17:31:41Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my scheduled search producing a count of zero, but get results when I run the search manually?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-scheduled-search-producing-a-count-of-zero-but-get/m-p/209254#M61139</link>
      <description>&lt;P&gt;Hi mmodestino, can you guide me on this as this issue is there for long time. Need to find the fix for this. Kindly suggest or guide me on this.&lt;/P&gt;

&lt;P&gt;thanks in advance.&lt;/P&gt;</description>
      <pubDate>Sun, 06 Nov 2016 19:00:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-my-scheduled-search-producing-a-count-of-zero-but-get/m-p/209254#M61139</guid>
      <dc:creator>Hemnaath</dc:creator>
      <dc:date>2016-11-06T19:00:03Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my scheduled search producing a count of zero, but get results when I run the search manually?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-scheduled-search-producing-a-count-of-zero-but-get/m-p/209255#M61140</link>
      <description>&lt;P&gt;Hey!&lt;/P&gt;

&lt;P&gt;Ok, so you logged in as the other user and they can see the lookup file? Thats good, how about the events??&lt;/P&gt;

&lt;P&gt;Does the other user see anything when running  &lt;CODE&gt;source="dhcpd.log" Host=H* DHCPACK lease-duration OR RENEW&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Slowly build up the search, pipe by pipe, with the other account till you find the problem...&lt;/P&gt;

&lt;P&gt;You can share a link to &lt;A href="http://pastebin.com/"&gt;http://pastebin.com/&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Get a free account and paste it there. &lt;/P&gt;</description>
      <pubDate>Sun, 06 Nov 2016 19:52:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-my-scheduled-search-producing-a-count-of-zero-but-get/m-p/209255#M61140</guid>
      <dc:creator>mattymo</dc:creator>
      <dc:date>2016-11-06T19:52:43Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my scheduled search producing a count of zero, but get results when I run the search manually?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-scheduled-search-producing-a-count-of-zero-but-get/m-p/209256#M61141</link>
      <description>&lt;P&gt;Hi mmodestino, yes he can see the details when he execute the below search &lt;/P&gt;

&lt;P&gt;source="dhcpd.log" Host=H* DHCPACK lease-duration OR RENEW. &lt;/P&gt;

&lt;P&gt;Now I could see the below message popping out in splunk portal --&amp;gt; message &lt;/P&gt;

&lt;P&gt;msg="A scripted exited abnormally" input="opt/splunk/etc/apps/TA-Qualys/bin/download_qualys_assets.sh" stanza="default" status&lt;/P&gt;

&lt;P&gt;Hey I  have registered in pastebin site, but not sure whether I can share the information. &lt;/P&gt;

&lt;P&gt;thanks in advance.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 11:41:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-my-scheduled-search-producing-a-count-of-zero-but-get/m-p/209256#M61141</guid>
      <dc:creator>Hemnaath</dc:creator>
      <dc:date>2020-09-29T11:41:59Z</dc:date>
    </item>
  </channel>
</rss>

