<?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: How to monitor log files from /tmp/folder_name with a Universal Forwarder? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-monitor-log-files-from-tmp-folder-name-with-a-Universal/m-p/300789#M56862</link>
    <description>&lt;P&gt;you also have to create a file called outputs.conf &lt;/P&gt;

&lt;P&gt;[tcpout]&lt;BR /&gt;
defaultGroup = default group &lt;/P&gt;

&lt;P&gt;[tcpout:default group ]&lt;BR /&gt;
server = indexer_ipaddress:port&lt;/P&gt;

&lt;P&gt;also make sure the port 9997 is open in the indexer settings&lt;/P&gt;</description>
    <pubDate>Wed, 04 Apr 2018 15:55:28 GMT</pubDate>
    <dc:creator>Venkat_16</dc:creator>
    <dc:date>2018-04-04T15:55:28Z</dc:date>
    <item>
      <title>How to monitor log files from /tmp/folder_name with a Universal Forwarder?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-monitor-log-files-from-tmp-folder-name-with-a-Universal/m-p/300781#M56854</link>
      <description>&lt;P&gt;I want to monitor log files and some custom files from /tmp/log_folder on a linux server.&lt;/P&gt;
&lt;P&gt;On the Linux box, the desired logs are scripted to /tmp/log_folder/ and this folder will be monitored by the UF.&lt;/P&gt;
&lt;P&gt;There is a script to clear out the folder every hour, any file older than 1 day.&lt;/P&gt;
&lt;P&gt;So far, I installed a UF on the server.&lt;/P&gt;
&lt;P&gt;Besides creating an inputs app (inputs.conf) on the UF and adding the monitoring stanza&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt; [monitor///tmp/log_folder/*] 
index=special_logs
sourcetype = log_sourcetype
ignoreOlderThan = 1d
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Do I need to add anything else?&lt;/P&gt;
&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Sat, 06 Jun 2020 23:31:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-monitor-log-files-from-tmp-folder-name-with-a-Universal/m-p/300781#M56854</guid>
      <dc:creator>Log_wrangler</dc:creator>
      <dc:date>2020-06-06T23:31:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to monitor log files from /tmp/folder_name with a Universal Forwarder?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-monitor-log-files-from-tmp-folder-name-with-a-Universal/m-p/300782#M56855</link>
      <description>&lt;P&gt;The &lt;CODE&gt;outputs.conf&lt;/CODE&gt; should point to your indexers and the &lt;CODE&gt;special_logs&lt;/CODE&gt; index should exist.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Apr 2018 19:11:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-monitor-log-files-from-tmp-folder-name-with-a-Universal/m-p/300782#M56855</guid>
      <dc:creator>ddrillic</dc:creator>
      <dc:date>2018-04-02T19:11:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to monitor log files from /tmp/folder_name with a Universal Forwarder?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-monitor-log-files-from-tmp-folder-name-with-a-Universal/m-p/300783#M56856</link>
      <description>&lt;P&gt;Bingo! Once you configure &lt;CODE&gt;outputs.conf&lt;/CODE&gt; and restart the Splunkd service on the UF, logs will start flowing into Splnuk&lt;/P&gt;</description>
      <pubDate>Mon, 02 Apr 2018 20:05:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-monitor-log-files-from-tmp-folder-name-with-a-Universal/m-p/300783#M56856</guid>
      <dc:creator>skoelpin</dc:creator>
      <dc:date>2018-04-02T20:05:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to monitor log files from /tmp/folder_name with a Universal Forwarder?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-monitor-log-files-from-tmp-folder-name-with-a-Universal/m-p/300784#M56857</link>
      <description>&lt;P&gt;To monitor log files under a folder execute the command : (or create inputs.conf)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;./splunk add monitor /tmp/log_folder/
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;To forward logs to Splunk Indexer: (outputs.conf)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;./splunk add forward-server &amp;lt;splunk-indexer&amp;gt;:&amp;lt;port&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;restart splunk services on the forwarder and search for logs.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Apr 2018 02:33:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-monitor-log-files-from-tmp-folder-name-with-a-Universal/m-p/300784#M56857</guid>
      <dc:creator>splunker12er</dc:creator>
      <dc:date>2018-04-03T02:33:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to monitor log files from /tmp/folder_name with a Universal Forwarder?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-monitor-log-files-from-tmp-folder-name-with-a-Universal/m-p/300785#M56858</link>
      <description>&lt;P&gt;your monitor stanza is missing a &lt;CODE&gt;:&lt;/CODE&gt; it should be &lt;CODE&gt;[monitor:///tmp/log_folder/*]&lt;/CODE&gt; &lt;BR /&gt;
also, don't forget to grant the user running Splunk read and execute permission on &lt;CODE&gt;/tmp/log_folder/&lt;/CODE&gt; &lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
      <pubDate>Tue, 03 Apr 2018 02:40:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-monitor-log-files-from-tmp-folder-name-with-a-Universal/m-p/300785#M56858</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2018-04-03T02:40:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to monitor log files from /tmp/folder_name with a Universal Forwarder?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-monitor-log-files-from-tmp-folder-name-with-a-Universal/m-p/300786#M56859</link>
      <description>&lt;P&gt;Thank you for noting the error and advising about the permissions.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Apr 2018 15:49:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-monitor-log-files-from-tmp-folder-name-with-a-Universal/m-p/300786#M56859</guid>
      <dc:creator>Log_wrangler</dc:creator>
      <dc:date>2018-04-04T15:49:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to monitor log files from /tmp/folder_name with a Universal Forwarder?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-monitor-log-files-from-tmp-folder-name-with-a-Universal/m-p/300787#M56860</link>
      <description>&lt;P&gt;Thank you for reminding me to create the outputs app (outputs.conf), which I am actually hopping thru an HF first.  The HF is configure to send to indexers.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Apr 2018 15:52:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-monitor-log-files-from-tmp-folder-name-with-a-Universal/m-p/300787#M56860</guid>
      <dc:creator>Log_wrangler</dc:creator>
      <dc:date>2018-04-04T15:52:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to monitor log files from /tmp/folder_name with a Universal Forwarder?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-monitor-log-files-from-tmp-folder-name-with-a-Universal/m-p/300788#M56861</link>
      <description>&lt;P&gt;Thank you for the reply and instructions.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Apr 2018 15:53:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-monitor-log-files-from-tmp-folder-name-with-a-Universal/m-p/300788#M56861</guid>
      <dc:creator>Log_wrangler</dc:creator>
      <dc:date>2018-04-04T15:53:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to monitor log files from /tmp/folder_name with a Universal Forwarder?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-monitor-log-files-from-tmp-folder-name-with-a-Universal/m-p/300789#M56862</link>
      <description>&lt;P&gt;you also have to create a file called outputs.conf &lt;/P&gt;

&lt;P&gt;[tcpout]&lt;BR /&gt;
defaultGroup = default group &lt;/P&gt;

&lt;P&gt;[tcpout:default group ]&lt;BR /&gt;
server = indexer_ipaddress:port&lt;/P&gt;

&lt;P&gt;also make sure the port 9997 is open in the indexer settings&lt;/P&gt;</description>
      <pubDate>Wed, 04 Apr 2018 15:55:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-monitor-log-files-from-tmp-folder-name-with-a-Universal/m-p/300789#M56862</guid>
      <dc:creator>Venkat_16</dc:creator>
      <dc:date>2018-04-04T15:55:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to monitor log files from /tmp/folder_name with a Universal Forwarder?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-monitor-log-files-from-tmp-folder-name-with-a-Universal/m-p/300790#M56863</link>
      <description>&lt;P&gt;I like the simplicity of this way to get the inputs and outputs created.   &lt;/P&gt;</description>
      <pubDate>Wed, 04 Apr 2018 15:58:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-monitor-log-files-from-tmp-folder-name-with-a-Universal/m-p/300790#M56863</guid>
      <dc:creator>Log_wrangler</dc:creator>
      <dc:date>2018-04-04T15:58:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to monitor log files from /tmp/folder_name with a Universal Forwarder?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-monitor-log-files-from-tmp-folder-name-with-a-Universal/m-p/300791#M56864</link>
      <description>&lt;P&gt;&lt;STRONG&gt;/tmp/ folder can't be natively monitored&lt;/STRONG&gt; by splunk as the splunkd process does not have permissions to access your files in /tmp/&lt;/P&gt;

&lt;P&gt;You'd either need to have the files in /tmp generated by splunkd, or give extra permissions to the splunkd process owner to access /tmp files&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jun 2020 11:57:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-monitor-log-files-from-tmp-folder-name-with-a-Universal/m-p/300791#M56864</guid>
      <dc:creator>ldongradi_SPL</dc:creator>
      <dc:date>2020-06-04T11:57:52Z</dc:date>
    </item>
  </channel>
</rss>

