<?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 oneshot events not in index --- ooops problem solved in Deployment Architecture</title>
    <link>https://community.splunk.com/t5/Deployment-Architecture/oneshot-events-not-in-index-ooops-problem-solved/m-p/343280#M19375</link>
    <description>&lt;P&gt;I'm trying to use oneshot on a Windows HF to test some data.  Here is the command and the result:&lt;/P&gt;

&lt;P&gt;C:&amp;gt;"Program Files\Splunk\bin\splunk.exe" add oneshot \Tools\1dns.log -index test_dns&lt;BR /&gt;
Oneshot 'C:\Tools\1dns.log' added&lt;/P&gt;

&lt;P&gt;But when I do I search:&lt;/P&gt;

&lt;P&gt;index=test_dns&lt;/P&gt;

&lt;P&gt;I get no results.&lt;/P&gt;

&lt;P&gt;I've repeated the oneshot multiple times.&lt;/P&gt;

&lt;P&gt;I found this link:  &lt;A href="https://answers.splunk.com/answers/41990/how-long-to-wait-after-splunk-add-oneshot-before-doing-searches.html"&gt;https://answers.splunk.com/answers/41990/how-long-to-wait-after-splunk-add-oneshot-before-doing-searches.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;And when I checked the tailing processor page, of the HF, it showed all the other files it had or was continuing to ingest, but not 1dns.log.&lt;/P&gt;

&lt;P&gt;I searched the _internal index for that file to see if there were any errors and the one most prevalent is:&lt;/P&gt;

&lt;P&gt;0400 WARN DateParserVerbose - Failed to parse timestamp. Defaulting to timestamp of previous event (Sun Apr 16 08:06:17 2017). Context: source::C:\Tools\1dns.log|host::SPLUNK-04|DNS|9&lt;/P&gt;

&lt;P&gt;---- Ah, searched on the date in the error above and found all my events.  &lt;/P&gt;

&lt;P&gt;Back to working to fix my props.conf.&lt;/P&gt;</description>
    <pubDate>Fri, 21 Apr 2017 18:30:30 GMT</pubDate>
    <dc:creator>reswob4</dc:creator>
    <dc:date>2017-04-21T18:30:30Z</dc:date>
    <item>
      <title>oneshot events not in index --- ooops problem solved</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/oneshot-events-not-in-index-ooops-problem-solved/m-p/343280#M19375</link>
      <description>&lt;P&gt;I'm trying to use oneshot on a Windows HF to test some data.  Here is the command and the result:&lt;/P&gt;

&lt;P&gt;C:&amp;gt;"Program Files\Splunk\bin\splunk.exe" add oneshot \Tools\1dns.log -index test_dns&lt;BR /&gt;
Oneshot 'C:\Tools\1dns.log' added&lt;/P&gt;

&lt;P&gt;But when I do I search:&lt;/P&gt;

&lt;P&gt;index=test_dns&lt;/P&gt;

&lt;P&gt;I get no results.&lt;/P&gt;

&lt;P&gt;I've repeated the oneshot multiple times.&lt;/P&gt;

&lt;P&gt;I found this link:  &lt;A href="https://answers.splunk.com/answers/41990/how-long-to-wait-after-splunk-add-oneshot-before-doing-searches.html"&gt;https://answers.splunk.com/answers/41990/how-long-to-wait-after-splunk-add-oneshot-before-doing-searches.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;And when I checked the tailing processor page, of the HF, it showed all the other files it had or was continuing to ingest, but not 1dns.log.&lt;/P&gt;

&lt;P&gt;I searched the _internal index for that file to see if there were any errors and the one most prevalent is:&lt;/P&gt;

&lt;P&gt;0400 WARN DateParserVerbose - Failed to parse timestamp. Defaulting to timestamp of previous event (Sun Apr 16 08:06:17 2017). Context: source::C:\Tools\1dns.log|host::SPLUNK-04|DNS|9&lt;/P&gt;

&lt;P&gt;---- Ah, searched on the date in the error above and found all my events.  &lt;/P&gt;

&lt;P&gt;Back to working to fix my props.conf.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Apr 2017 18:30:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/oneshot-events-not-in-index-ooops-problem-solved/m-p/343280#M19375</guid>
      <dc:creator>reswob4</dc:creator>
      <dc:date>2017-04-21T18:30:30Z</dc:date>
    </item>
    <item>
      <title>Re: oneshot events not in index --- ooops problem solved</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/oneshot-events-not-in-index-ooops-problem-solved/m-p/343281#M19376</link>
      <description>&lt;P&gt;Hey reswob4,&lt;BR /&gt;
try this: from C:\Program Files\Splunk\bin\&lt;BR /&gt;
run this: &lt;CODE&gt;splunk add oneshot -source \Tools\1dns.log -index test_dns&lt;/CODE&gt; &lt;/P&gt;

&lt;P&gt;make sure the file in the exact full path, you probably need to specify C:\directory\directory\path\to\file&lt;BR /&gt;
or copy paste from the windows explorer&lt;BR /&gt;
example from docs here:&lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/Splunk/6.5.3/Data/MonitorfilesanddirectoriesusingtheCLI#Example_4:_Upload_a_file"&gt;https://docs.splunk.com/Documentation/Splunk/6.5.3/Data/MonitorfilesanddirectoriesusingtheCLI#Example_4:_Upload_a_file&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;hope it helps&lt;/P&gt;</description>
      <pubDate>Fri, 21 Apr 2017 18:36:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/oneshot-events-not-in-index-ooops-problem-solved/m-p/343281#M19376</guid>
      <dc:creator>adonio</dc:creator>
      <dc:date>2017-04-21T18:36:53Z</dc:date>
    </item>
    <item>
      <title>Re: oneshot events not in index --- ooops problem solved</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/oneshot-events-not-in-index-ooops-problem-solved/m-p/343282#M19377</link>
      <description>&lt;P&gt;@reswob4 - It looks like you're attempting to share how you found a solution to your issue, right? If so, can you please put how you found your solution in an a separate answer below and "Accept" it? That way others can easily find it if they are running into the same problem. Thanks for sharing the with community!&lt;/P&gt;</description>
      <pubDate>Fri, 21 Apr 2017 18:42:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/oneshot-events-not-in-index-ooops-problem-solved/m-p/343282#M19377</guid>
      <dc:creator>aaraneta_splunk</dc:creator>
      <dc:date>2017-04-21T18:42:59Z</dc:date>
    </item>
    <item>
      <title>Re: oneshot events not in index --- ooops problem solved</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/oneshot-events-not-in-index-ooops-problem-solved/m-p/343283#M19378</link>
      <description>&lt;P&gt;Thanks for the tip @adonio, the source defaulted to what you suggested.  I may need to specify the sourcetype, but the main problem seems to be my timestamp.&lt;/P&gt;

&lt;P&gt;To repeat what I said above:&lt;/P&gt;

&lt;P&gt;I searched the _internal index for that file to see if there were any errors and the one most prevalent was:&lt;/P&gt;

&lt;P&gt;0400 WARN DateParserVerbose - Failed to parse timestamp. Defaulting to timestamp of previous event (Sun Apr 16 08:06:17 2017). Context: source::C:\Tools\1dns.log|host::SPLUNK-04|DNS|9&lt;/P&gt;

&lt;P&gt;I searched the test_dns index specifically on the date in the error above and found all my events.&lt;/P&gt;

&lt;P&gt;Back to working to fix my props.conf to fix the timestamp problem.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Apr 2017 18:47:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/oneshot-events-not-in-index-ooops-problem-solved/m-p/343283#M19378</guid>
      <dc:creator>reswob4</dc:creator>
      <dc:date>2017-04-21T18:47:48Z</dc:date>
    </item>
    <item>
      <title>Re: oneshot events not in index --- ooops problem solved</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/oneshot-events-not-in-index-ooops-problem-solved/m-p/343284#M19379</link>
      <description>&lt;P&gt;Also be sure to check the time range of your search.  If you're seeing nothing, and no errors, try "All TIme"&lt;/P&gt;</description>
      <pubDate>Mon, 02 Dec 2019 14:27:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/oneshot-events-not-in-index-ooops-problem-solved/m-p/343284#M19379</guid>
      <dc:creator>gmjATredjack</dc:creator>
      <dc:date>2019-12-02T14:27:11Z</dc:date>
    </item>
    <item>
      <title>Re: oneshot events not in index --- ooops problem solved</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/oneshot-events-not-in-index-ooops-problem-solved/m-p/698454#M28534</link>
      <description>&lt;P&gt;Specify the sourcetype at the oneshot command and have a props.conf with the following paramers set.&amp;nbsp; The TIME parameters will take care of your timestamp issue.&amp;nbsp; Make sure to restart the splunkd service after adding the props.conf.&lt;/P&gt;&lt;P&gt;[sourcetypename]&lt;BR /&gt;LINE_BREAKER&lt;BR /&gt;TIME_PREFIX&lt;BR /&gt;MAX_TIMESTAMP_LOOKAHEAD&lt;BR /&gt;TIME_FORMAT&lt;BR /&gt;TRUNCATE&lt;BR /&gt;SHOULD_LINEMERGE = false # LINE_BREAKER should be properly set so you can keep SHOULD_LINEMERGE = false&lt;BR /&gt;NO_BINARY_CHECK = true&lt;/P&gt;</description>
      <pubDate>Sat, 07 Sep 2024 16:45:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/oneshot-events-not-in-index-ooops-problem-solved/m-p/698454#M28534</guid>
      <dc:creator>anwarmian</dc:creator>
      <dc:date>2024-09-07T16:45:08Z</dc:date>
    </item>
  </channel>
</rss>

