<?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: Can I use wildcards for IPs in inputs.conf? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Can-I-use-wildcards-for-IPs-in-inputs-conf/m-p/232561#M45378</link>
    <description>&lt;P&gt;if i understend right, with acceptFrom i cant make few stanzas with same name&lt;/P&gt;

&lt;P&gt;[udp:514]&lt;BR /&gt;
connection_host = ip&lt;BR /&gt;
source = syslog&lt;BR /&gt;
index = main&lt;BR /&gt;
sourcetype = cisco:sw&lt;BR /&gt;
acceptFrom = 1.1.1/24, 2.2.2/24&lt;BR /&gt;
disabled = 0&lt;/P&gt;

&lt;P&gt;[udp:514]&lt;BR /&gt;
connection_host = ip&lt;BR /&gt;
source = syslog&lt;BR /&gt;
index = main&lt;BR /&gt;
sourcetype = cisco:asa&lt;BR /&gt;
disabled = 0&lt;BR /&gt;
acceptFrom = 3.3.3/24&lt;/P&gt;</description>
    <pubDate>Wed, 29 Jun 2016 09:00:48 GMT</pubDate>
    <dc:creator>Shark2112</dc:creator>
    <dc:date>2016-06-29T09:00:48Z</dc:date>
    <item>
      <title>Can I use wildcards for IPs in inputs.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-I-use-wildcards-for-IPs-in-inputs-conf/m-p/232559#M45376</link>
      <description>&lt;P&gt;Hey guys. &lt;/P&gt;

&lt;P&gt;Can I use wildcards for IPs in inputs.conf?&lt;/P&gt;

&lt;P&gt;I have:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[udp://10.102.1.1:514]
connection_host = ip
source = syslog
sourcetype = cisco

[udp://10.102.1.2:514]
connection_host = ip
source = syslog
index = main
sourcetype = cisco

I want:
[udp://10.102.1.\*:514]
connection_host = ip
source = syslog
index = main
sourcetype = cisco
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thx!&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jun 2016 15:00:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-I-use-wildcards-for-IPs-in-inputs-conf/m-p/232559#M45376</guid>
      <dc:creator>Shark2112</dc:creator>
      <dc:date>2016-06-28T15:00:46Z</dc:date>
    </item>
    <item>
      <title>Re: Can I use wildcards for IPs in inputs.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-I-use-wildcards-for-IPs-in-inputs-conf/m-p/232560#M45377</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;You can use the new option acceptFrom in inputs.conf. If that you can add acceptFrom=10.102.1.0/24. See more info here: &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.4.1/admin/inputsconf"&gt;http://docs.splunk.com/Documentation/Splunk/6.4.1/admin/inputsconf&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jun 2016 19:38:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-I-use-wildcards-for-IPs-in-inputs-conf/m-p/232560#M45377</guid>
      <dc:creator>gfreitas</dc:creator>
      <dc:date>2016-06-28T19:38:29Z</dc:date>
    </item>
    <item>
      <title>Re: Can I use wildcards for IPs in inputs.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-I-use-wildcards-for-IPs-in-inputs-conf/m-p/232561#M45378</link>
      <description>&lt;P&gt;if i understend right, with acceptFrom i cant make few stanzas with same name&lt;/P&gt;

&lt;P&gt;[udp:514]&lt;BR /&gt;
connection_host = ip&lt;BR /&gt;
source = syslog&lt;BR /&gt;
index = main&lt;BR /&gt;
sourcetype = cisco:sw&lt;BR /&gt;
acceptFrom = 1.1.1/24, 2.2.2/24&lt;BR /&gt;
disabled = 0&lt;/P&gt;

&lt;P&gt;[udp:514]&lt;BR /&gt;
connection_host = ip&lt;BR /&gt;
source = syslog&lt;BR /&gt;
index = main&lt;BR /&gt;
sourcetype = cisco:asa&lt;BR /&gt;
disabled = 0&lt;BR /&gt;
acceptFrom = 3.3.3/24&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jun 2016 09:00:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-I-use-wildcards-for-IPs-in-inputs-conf/m-p/232561#M45378</guid>
      <dc:creator>Shark2112</dc:creator>
      <dc:date>2016-06-29T09:00:48Z</dc:date>
    </item>
    <item>
      <title>Re: Can I use wildcards for IPs in inputs.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-I-use-wildcards-for-IPs-in-inputs-conf/m-p/232562#M45379</link>
      <description>&lt;P&gt;No, the acceptFrom filters results from the port but you cannot add multiple entries just with the port, Splunk will add just one of the entries. Maybe you can change ports and do smth like this:&lt;/P&gt;

&lt;P&gt;[udp:514]&lt;BR /&gt;
connection_host = ip&lt;BR /&gt;
source = syslog&lt;BR /&gt;
index = main&lt;BR /&gt;
sourcetype = cisco:sw&lt;BR /&gt;
acceptFrom = 1.1.1/24, 2.2.2/24&lt;BR /&gt;
disabled = 0&lt;/P&gt;

&lt;P&gt;[udp:515]&lt;BR /&gt;
connection_host = ip&lt;BR /&gt;
source = syslog&lt;BR /&gt;
index = main&lt;BR /&gt;
sourcetype = cisco:asa&lt;BR /&gt;
disabled = 0&lt;BR /&gt;
acceptFrom = 3.3.3/24&lt;/P&gt;

&lt;P&gt;Other options are sourcetype renaming and sourcetype configuration per-event. Usefull links: &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.4.1/Data/Renamesourcetypes"&gt;http://docs.splunk.com/Documentation/Splunk/6.4.1/Data/Renamesourcetypes&lt;/A&gt; and &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.4.1/Data/Advancedsourcetypeoverrides"&gt;http://docs.splunk.com/Documentation/Splunk/6.4.1/Data/Advancedsourcetypeoverrides&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Hope this helps&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jun 2016 13:43:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-I-use-wildcards-for-IPs-in-inputs-conf/m-p/232562#M45379</guid>
      <dc:creator>gfreitas</dc:creator>
      <dc:date>2016-06-29T13:43:15Z</dc:date>
    </item>
    <item>
      <title>Re: Can I use wildcards for IPs in inputs.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Can-I-use-wildcards-for-IPs-in-inputs-conf/m-p/232563#M45380</link>
      <description>&lt;P&gt;i want to use just 514 port so i write python script, thx for help&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jun 2016 10:32:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Can-I-use-wildcards-for-IPs-in-inputs-conf/m-p/232563#M45380</guid>
      <dc:creator>Shark2112</dc:creator>
      <dc:date>2016-06-30T10:32:00Z</dc:date>
    </item>
  </channel>
</rss>

