<?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: Index Log file on demand in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Index-Log-file-on-demand/m-p/156687#M31760</link>
    <description>&lt;P&gt;The oneshot command could be useful, I will try that.&lt;/P&gt;

&lt;P&gt;Thanks.&lt;/P&gt;</description>
    <pubDate>Mon, 15 Jun 2015 12:36:46 GMT</pubDate>
    <dc:creator>SirHill17</dc:creator>
    <dc:date>2015-06-15T12:36:46Z</dc:date>
    <item>
      <title>Index Log file on demand</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Index-Log-file-on-demand/m-p/156685#M31758</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;To avoid too much data collection, I would like Splunk to only index a log file following a manual action like clicking on a cell in the search result.&lt;/P&gt;

&lt;P&gt;I have already set up the index on the indexer, the class on the deployment-server, but currently it collects every file logs.&lt;/P&gt;

&lt;P&gt;i.e.:&lt;/P&gt;

&lt;P&gt;2015-06-15 13:40:13     hostname    ERROR   get_details     gf_ServerDetails  failed                &lt;STRONG&gt;/apps/user/tmp/xxxxxxx.tmp.get_details&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;So what I would like is when clicking on the file name, Splunk goes to read the file and display the result.&lt;/P&gt;

&lt;P&gt;Not sure if my request is clear enough. Do not hesitate to request more details.&lt;/P&gt;

&lt;P&gt;Thanks for your help.&lt;/P&gt;

&lt;P&gt;Regards,&lt;/P&gt;

&lt;P&gt;Cyril&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 20:16:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Index-Log-file-on-demand/m-p/156685#M31758</guid>
      <dc:creator>SirHill17</dc:creator>
      <dc:date>2020-09-28T20:16:11Z</dc:date>
    </item>
    <item>
      <title>Re: Index Log file on demand</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Index-Log-file-on-demand/m-p/156686#M31759</link>
      <description>&lt;P&gt;The indexers/search-head have no control on the forwarders, and also have no knowledge of the list of files available. So you cannot search on log files that have not yet be indexed.&lt;/P&gt;

&lt;P&gt;So your question looks more like an Enhancement Request.&lt;/P&gt;

&lt;P&gt;Tracks to try manually :&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;use the oneshot CLI command to index a file on demand ( on the forwarder)&lt;/LI&gt;
&lt;LI&gt;to get a list of files on a remote forwarder. try a scripted input doing a simple dir/ ls with file timestamps on a regular basis&lt;/LI&gt;
&lt;LI&gt;maybe a deployment server could be used to create specific inputs. but will not be great if you have many inputs to handle and clear afterward.&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Mon, 15 Jun 2015 12:30:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Index-Log-file-on-demand/m-p/156686#M31759</guid>
      <dc:creator>yannK</dc:creator>
      <dc:date>2015-06-15T12:30:12Z</dc:date>
    </item>
    <item>
      <title>Re: Index Log file on demand</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Index-Log-file-on-demand/m-p/156687#M31760</link>
      <description>&lt;P&gt;The oneshot command could be useful, I will try that.&lt;/P&gt;

&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jun 2015 12:36:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Index-Log-file-on-demand/m-p/156687#M31760</guid>
      <dc:creator>SirHill17</dc:creator>
      <dc:date>2015-06-15T12:36:46Z</dc:date>
    </item>
  </channel>
</rss>

