<?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: Wildcards in source name in inputs.conf in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Wildcards-in-source-name-in-inputs-conf/m-p/612469#M105973</link>
    <description>&lt;P&gt;Leave out the source specifier.&amp;nbsp; Splunk will get the source value from the file it reads.&lt;/P&gt;</description>
    <pubDate>Thu, 08 Sep 2022 19:32:07 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2022-09-08T19:32:07Z</dc:date>
    <item>
      <title>Wildcards in source name in inputs.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Wildcards-in-source-name-in-inputs-conf/m-p/612463#M105971</link>
      <description>&lt;P&gt;We are monitoring log files that rotate multiple times daily.&amp;nbsp; We have wildcards specified in the monitor command, but do not in the source command.&amp;nbsp; Our issue arises when the software that generates the logs is updated and we have to update the paths in our inputs.conf.&lt;/P&gt;&lt;P&gt;Here is a sample stanza:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[monitor:///apps/psprdcs/pt8.58/config/sprdcs/appserv/SPRDCS/LOGS/APPSRV_*]
index=peoplesoft
sourcetype=peoplesoft_appsrv
source=/apps/psprdcs/pt8.58/config/sprdcs/appserv/SPRDCS/LOGS/APPSRV.LOG&lt;/LI-CODE&gt;&lt;P&gt;What we would like to do is something along these lines so version changes don't require Splunk changes:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[monitor:///apps/psprd*/.../APPSRV_*]
index=peoplesoft
sourcetype=peoplesoft_appsrv
source=/apps/psprd*/.../APPSRV.LOG&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have notes from my predecessor that we can't do that because you cannot specify a wildcard on the source line.&amp;nbsp; We want the full pathname for the source.&lt;/P&gt;&lt;P&gt;Is this limitation still in effect or can it be done?&lt;/P&gt;&lt;P&gt;Thanks In Advance!&lt;/P&gt;&lt;P&gt;Jeff&lt;/P&gt;</description>
      <pubDate>Thu, 08 Sep 2022 18:38:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Wildcards-in-source-name-in-inputs-conf/m-p/612463#M105971</guid>
      <dc:creator>jpashak</dc:creator>
      <dc:date>2022-09-08T18:38:18Z</dc:date>
    </item>
    <item>
      <title>Re: Wildcards in source name in inputs.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Wildcards-in-source-name-in-inputs-conf/m-p/612469#M105973</link>
      <description>&lt;P&gt;Leave out the source specifier.&amp;nbsp; Splunk will get the source value from the file it reads.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Sep 2022 19:32:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Wildcards-in-source-name-in-inputs-conf/m-p/612469#M105973</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2022-09-08T19:32:07Z</dc:date>
    </item>
    <item>
      <title>Re: Wildcards in source name in inputs.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Wildcards-in-source-name-in-inputs-conf/m-p/612470#M105974</link>
      <description>&lt;P&gt;I understand that.&amp;nbsp; In our case, we want the source to not contain the changing value in the filename, to give the appearance the source is the same for all of these.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;The file name is &lt;STRONG&gt;/apps/psprdcs/pt8.58/config/sprdcs/appserv/SPRDCS/LOGS/APPSRV_0908.LOG&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;We want the source to be&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /apps/psprdcs/pt8.58/config/sprdcs/appserv/SPRDCS/LOGS/APPSRV.LOG&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;not&lt;/EM&gt; &lt;STRONG&gt;/apps/psprdcs/pt8.58/config/sprdcs/appserv/SPRDCS/LOGS/APPSRV_0908.LOG&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Sep 2022 19:43:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Wildcards-in-source-name-in-inputs-conf/m-p/612470#M105974</guid>
      <dc:creator>jpashak</dc:creator>
      <dc:date>2022-09-08T19:43:36Z</dc:date>
    </item>
  </channel>
</rss>

