<?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 configure a universal forwarder on a syslog server to monitor logs in this directory structure? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-a-universal-forwarder-on-a-syslog-server-to/m-p/250241#M48157</link>
    <description>&lt;P&gt;you are going to need something like bellow &lt;/P&gt;

&lt;P&gt;[monitor:///logs/logsrc*/*.log]&lt;BR /&gt;
host_segment = 2&lt;BR /&gt;
sourcetype =locrc&lt;BR /&gt;
index = test&lt;/P&gt;

&lt;H1&gt;ignoreOlderThan = 7d&lt;/H1&gt;

&lt;P&gt;disabled = false&lt;/P&gt;

&lt;P&gt;pay attention to line 2  where it take the folder name as host name otherwise it will make everyghing look like it is comming from the syslog server&lt;/P&gt;

&lt;P&gt;good luck&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 09:42:33 GMT</pubDate>
    <dc:creator>mosman_splunk</dc:creator>
    <dc:date>2020-09-29T09:42:33Z</dc:date>
    <item>
      <title>How to configure a universal forwarder on a syslog server to monitor logs in this directory structure?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-a-universal-forwarder-on-a-syslog-server-to/m-p/250240#M48156</link>
      <description>&lt;P&gt;I am interested in configuring a universal forwarder on a syslog server, and have a question regarding how the log data is currently being written.&lt;/P&gt;

&lt;P&gt;There are multiple sources which forward log data to the syslog server.  Each source is written to a directory structure similar to the following.  As the date changes, a new directory is created beneath the logsrc directory.&lt;/P&gt;

&lt;P&gt;/logs/logsrc1/2016.05.09&lt;BR /&gt;
  messages&lt;BR /&gt;
/logs/logsrc1/2016.05.10&lt;BR /&gt;
  messages&lt;BR /&gt;
/logs/logsrc1/2016.05.11&lt;BR /&gt;
  messages&lt;/P&gt;

&lt;P&gt;/logs/logsrc2/2016.05.09&lt;BR /&gt;
  messages&lt;BR /&gt;
/logs/logsrc2/2016.05.10&lt;BR /&gt;
  messages&lt;BR /&gt;
/logs/logsrc2/2016.05.11&lt;BR /&gt;
  messages&lt;/P&gt;

&lt;P&gt;If each of the log sources is a similar data type, would the following inputs.conf entry correctly forward the data?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor:///logs/]
index=sn_syslog
sourcetype=sn_syslog
recursive=true
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 13 May 2016 16:39:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-a-universal-forwarder-on-a-syslog-server-to/m-p/250240#M48156</guid>
      <dc:creator>adamblock2</dc:creator>
      <dc:date>2016-05-13T16:39:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure a universal forwarder on a syslog server to monitor logs in this directory structure?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-a-universal-forwarder-on-a-syslog-server-to/m-p/250241#M48157</link>
      <description>&lt;P&gt;you are going to need something like bellow &lt;/P&gt;

&lt;P&gt;[monitor:///logs/logsrc*/*.log]&lt;BR /&gt;
host_segment = 2&lt;BR /&gt;
sourcetype =locrc&lt;BR /&gt;
index = test&lt;/P&gt;

&lt;H1&gt;ignoreOlderThan = 7d&lt;/H1&gt;

&lt;P&gt;disabled = false&lt;/P&gt;

&lt;P&gt;pay attention to line 2  where it take the folder name as host name otherwise it will make everyghing look like it is comming from the syslog server&lt;/P&gt;

&lt;P&gt;good luck&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 09:42:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-configure-a-universal-forwarder-on-a-syslog-server-to/m-p/250241#M48157</guid>
      <dc:creator>mosman_splunk</dc:creator>
      <dc:date>2020-09-29T09:42:33Z</dc:date>
    </item>
  </channel>
</rss>

