<?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: Monitor directory and files in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Monitor-directory-and-files/m-p/381172#M86916</link>
    <description>&lt;P&gt;Thank you very much David and Hoshyk, yes I am 100% new, I started a couple of weeks ago and I did not know it could be a directory, I thought it had to be a named file. I have a couple of weeks using Splunk and I was even thinking about first monitor the directory and calling a script when a file was created to move the file renaming it to somewhere else and there consume the file... Rookie overcomplication of things, I truly thank you both.&lt;/P&gt;</description>
    <pubDate>Sat, 18 May 2019 18:34:00 GMT</pubDate>
    <dc:creator>azduke</dc:creator>
    <dc:date>2019-05-18T18:34:00Z</dc:date>
    <item>
      <title>Monitor directory and files</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Monitor-directory-and-files/m-p/381169#M86913</link>
      <description>&lt;P&gt;Hello all, I am facing some problems and would love to get some help. I need to monitor a directory for file creation, the files are named something like 27074.log or 57321.log, it basically is a process number name with the .log extention, once the file is created I need to monitor the content of the file loogking for an error, and if the error is there I need to raise an alert, is this possible?&lt;/P&gt;</description>
      <pubDate>Fri, 17 May 2019 23:11:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Monitor-directory-and-files/m-p/381169#M86913</guid>
      <dc:creator>azduke</dc:creator>
      <dc:date>2019-05-17T23:11:38Z</dc:date>
    </item>
    <item>
      <title>Re: Monitor directory and files</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Monitor-directory-and-files/m-p/381170#M86914</link>
      <description>&lt;P&gt;Yes, this is basic function of Splunk&lt;/P&gt;

&lt;P&gt;So best practice is&lt;BR /&gt;
1. Install Splunk Universal forwarder in your client (or HF in some cases)&lt;BR /&gt;
2. Create an app &lt;CODE&gt;MY_LOG_INPUTS&lt;/CODE&gt; and create local/inputs.conf&lt;BR /&gt;
3. In the inputs.conf , put a stanza [monitor:///absolute/location/of/*.log], put index where it should go to, and sourcetype&lt;/P&gt;

&lt;P&gt;Splunk will then take care automatically. Please read inputs.conf spec and outputs.conf spec to setup forwarding of logs to indexer&lt;/P&gt;</description>
      <pubDate>Sat, 18 May 2019 07:34:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Monitor-directory-and-files/m-p/381170#M86914</guid>
      <dc:creator>koshyk</dc:creator>
      <dc:date>2019-05-18T07:34:51Z</dc:date>
    </item>
    <item>
      <title>Re: Monitor directory and files</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Monitor-directory-and-files/m-p/381171#M86915</link>
      <description>&lt;P&gt;Hi @azduke,&lt;/P&gt;

&lt;P&gt;Seems like you're new to Splunk, welcome. Yes this is indeed possible. You can find a tutorial on how to monitor files in Splunk docs here : &lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/Splunk/7.2.6/Data/Monitorfilesanddirectorieswithinputs.conf"&gt;https://docs.splunk.com/Documentation/Splunk/7.2.6/Data/Monitorfilesanddirectorieswithinputs.conf&lt;/A&gt; &lt;/P&gt;

&lt;P&gt;This link is a bit technical as it will explain how to use the inputs.conf file. If you're looking for an easy solution go for this one as it's all GUI based and you can setup the data collection from a file without having to run any CLI configs : &lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/Splunk/7.2.6/Data/Monitordata"&gt;https://docs.splunk.com/Documentation/Splunk/7.2.6/Data/Monitordata&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;In either way if the data you are looking to collect is not on the Splunk server itself then you will need to forward it to your splunk deployment first. You can use forwarder for that, some info here :&lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/Splunk/7.2.6/Forwarding/Aboutforwardingandreceivingdata"&gt;https://docs.splunk.com/Documentation/Splunk/7.2.6/Forwarding/Aboutforwardingandreceivingdata&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Cheers,&lt;BR /&gt;
David&lt;/P&gt;</description>
      <pubDate>Sat, 18 May 2019 09:35:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Monitor-directory-and-files/m-p/381171#M86915</guid>
      <dc:creator>DavidHourani</dc:creator>
      <dc:date>2019-05-18T09:35:38Z</dc:date>
    </item>
    <item>
      <title>Re: Monitor directory and files</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Monitor-directory-and-files/m-p/381172#M86916</link>
      <description>&lt;P&gt;Thank you very much David and Hoshyk, yes I am 100% new, I started a couple of weeks ago and I did not know it could be a directory, I thought it had to be a named file. I have a couple of weeks using Splunk and I was even thinking about first monitor the directory and calling a script when a file was created to move the file renaming it to somewhere else and there consume the file... Rookie overcomplication of things, I truly thank you both.&lt;/P&gt;</description>
      <pubDate>Sat, 18 May 2019 18:34:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Monitor-directory-and-files/m-p/381172#M86916</guid>
      <dc:creator>azduke</dc:creator>
      <dc:date>2019-05-18T18:34:00Z</dc:date>
    </item>
    <item>
      <title>Re: Monitor directory and files</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Monitor-directory-and-files/m-p/381173#M86917</link>
      <description>&lt;P&gt;most welcome man &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; just let us know if you need anything &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; &lt;/P&gt;</description>
      <pubDate>Mon, 20 May 2019 11:10:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Monitor-directory-and-files/m-p/381173#M86917</guid>
      <dc:creator>DavidHourani</dc:creator>
      <dc:date>2019-05-20T11:10:46Z</dc:date>
    </item>
    <item>
      <title>Re: Monitor directory and files</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Monitor-directory-and-files/m-p/507514#M86918</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/68181"&gt;@DavidHourani&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hello, I did what you suggested about the monitoring directory in web GUI, but I had some warning:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"Data preview will be skipped, it is not supported for directories."&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;I have 2 files log in&amp;nbsp;D:\Semester 7\Magang\Proyek\Proyek FDS that I want to monitor&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mathiasy123_0-1594029534679.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/9488iE1C972EB45676CBA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mathiasy123_0-1594029534679.png" alt="mathiasy123_0-1594029534679.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;Thanks in advanced&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jul 2020 09:59:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Monitor-directory-and-files/m-p/507514#M86918</guid>
      <dc:creator>mathiasy123</dc:creator>
      <dc:date>2020-07-06T09:59:20Z</dc:date>
    </item>
  </channel>
</rss>

