<?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: Inputs.conf help in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Inputs-conf-help/m-p/306074#M57732</link>
    <description>&lt;P&gt;If the different log types are going to different indexes, then yes, you will need 30 different configs. But if the only difference will be the sourcetype, you could do an override in props.conf. You still have to configure all the different configs, but it might be easier to do. Take a look at this:&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;inputs.conf&lt;/STRONG&gt;&lt;BR /&gt;
[monitor:///mnt/log/files/]&lt;BR /&gt;
whitelist=.gz$&lt;BR /&gt;
host_segment=7&lt;BR /&gt;
index=webserver&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;props.conf&lt;/STRONG&gt;&lt;BR /&gt;
[source::/mnt/log/files/.../access.gz]&lt;BR /&gt;
sourcetype=access:apache&lt;/P&gt;

&lt;P&gt;[source::/mnt/log/files/.../otherthing.gz]&lt;BR /&gt;
sourcetype=st_otherthing&lt;/P&gt;

&lt;P&gt;etc.&lt;/P&gt;</description>
    <pubDate>Thu, 16 Feb 2017 14:44:11 GMT</pubDate>
    <dc:creator>lguinn2</dc:creator>
    <dc:date>2017-02-16T14:44:11Z</dc:date>
    <item>
      <title>Inputs.conf help</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Inputs-conf-help/m-p/306073#M57731</link>
      <description>&lt;P&gt;I am trying to onboard ingest about 30 different log type from a single Source (Linux Server)&lt;/P&gt;

&lt;P&gt;Currently the logs are being written and zipped by rsyslog in a particular folder (structure below):&lt;BR /&gt;
/mnt/log/files/YYYY/MM/DD/hostname/filename.log.gz&lt;/P&gt;

&lt;P&gt;What would be the best way to ingest the different logtypes&lt;/P&gt;

&lt;P&gt;I was thinking about the following:&lt;/P&gt;

&lt;P&gt;[monitor:///mnt/log/files/&lt;EM&gt;/&lt;/EM&gt;/&lt;EM&gt;/&lt;/EM&gt;/]&lt;BR /&gt;
host_segment=7&lt;BR /&gt;
whitelist=(.+\access.gz)&lt;BR /&gt;
index=webserver&lt;BR /&gt;
sourcetype=access:apache&lt;/P&gt;

&lt;P&gt;Not sure why the asterisks are not showing up on the preview; &lt;BR /&gt;
it should be &lt;STRONG&gt;/mnt/log/files/aster*/aster*/aster*/aster*/&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;I was also thinking to ingest all 30 log types I would need to create 30 different configs?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 12:54:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Inputs-conf-help/m-p/306073#M57731</guid>
      <dc:creator>plumainwfs</dc:creator>
      <dc:date>2020-09-29T12:54:16Z</dc:date>
    </item>
    <item>
      <title>Re: Inputs.conf help</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Inputs-conf-help/m-p/306074#M57732</link>
      <description>&lt;P&gt;If the different log types are going to different indexes, then yes, you will need 30 different configs. But if the only difference will be the sourcetype, you could do an override in props.conf. You still have to configure all the different configs, but it might be easier to do. Take a look at this:&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;inputs.conf&lt;/STRONG&gt;&lt;BR /&gt;
[monitor:///mnt/log/files/]&lt;BR /&gt;
whitelist=.gz$&lt;BR /&gt;
host_segment=7&lt;BR /&gt;
index=webserver&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;props.conf&lt;/STRONG&gt;&lt;BR /&gt;
[source::/mnt/log/files/.../access.gz]&lt;BR /&gt;
sourcetype=access:apache&lt;/P&gt;

&lt;P&gt;[source::/mnt/log/files/.../otherthing.gz]&lt;BR /&gt;
sourcetype=st_otherthing&lt;/P&gt;

&lt;P&gt;etc.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Feb 2017 14:44:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Inputs-conf-help/m-p/306074#M57732</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2017-02-16T14:44:11Z</dc:date>
    </item>
    <item>
      <title>Re: Inputs.conf help</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Inputs-conf-help/m-p/306075#M57733</link>
      <description>&lt;P&gt;It would most probably be about 4-5 different indexes&lt;BR /&gt;
Best way to do this would be with the inputs as so.. &lt;BR /&gt;
&lt;STRONG&gt;inputs.conf&lt;/STRONG&gt;&lt;BR /&gt;
[monitor:///mnt/log/files/]&lt;BR /&gt;
whitelist=.gz$&lt;BR /&gt;
host_segment=7&lt;BR /&gt;
index=webserver&lt;/P&gt;

&lt;P&gt;[monitor:///mnt/log/files/]&lt;BR /&gt;
whitelist=.gz$&lt;BR /&gt;
host_segment=7&lt;BR /&gt;
index=webapp&lt;/P&gt;

&lt;P&gt;All 30 log types would be defined as separate sourcetype&lt;BR /&gt;
so best way do to this would be with the props.conf as you outlined?&lt;BR /&gt;
&lt;STRONG&gt;props.conf&lt;/STRONG&gt;&lt;BR /&gt;
[source::/mnt/log/files/.../access.gz]&lt;BR /&gt;
sourcetype=access:apache&lt;/P&gt;

&lt;P&gt;[source::/mnt/log/files/.../error.gz]&lt;BR /&gt;
sourcetype=st_otherthing &lt;/P&gt;</description>
      <pubDate>Thu, 16 Feb 2017 15:47:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Inputs-conf-help/m-p/306075#M57733</guid>
      <dc:creator>plumainwfs</dc:creator>
      <dc:date>2017-02-16T15:47:28Z</dc:date>
    </item>
    <item>
      <title>Re: Inputs.conf help</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Inputs-conf-help/m-p/306076#M57734</link>
      <description>&lt;P&gt;Also what happens to a gz file that I am not aware of? will that get indexed? and will not have a pre-defined sourcetype?&lt;/P&gt;</description>
      <pubDate>Thu, 16 Feb 2017 18:28:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Inputs-conf-help/m-p/306076#M57734</guid>
      <dc:creator>plumainwfs</dc:creator>
      <dc:date>2017-02-16T18:28:45Z</dc:date>
    </item>
  </channel>
</rss>

