<?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: Referencing Multiple hosts in Props.conf in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Referencing-Multiple-hosts-in-Props-conf/m-p/128586#M26386</link>
    <description>&lt;P&gt;I found this post where one of the answers explains that you can use some "regex type operators" including pipe as or bounded by ().&lt;BR /&gt;
&lt;A href="http://answers.splunk.com/answers/24274/can-you-have-a-wildcard-in-a-propsconf-stanza-header-when-matching-sourcetypes"&gt;http://answers.splunk.com/answers/24274/can-you-have-a-wildcard-in-a-propsconf-stanza-header-when-matching-sourcetypes&lt;/A&gt; &lt;/P&gt;

&lt;P&gt;I also found more information in the props.conf doc under&lt;BR /&gt;
&lt;CODE&gt;**[&amp;lt;spec&amp;gt;] stanza patterns:**&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.0.2/Admin/Propsconf"&gt;http://docs.splunk.com/Documentation/Splunk/6.0.2/Admin/Propsconf&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 11 Apr 2014 16:00:38 GMT</pubDate>
    <dc:creator>lukejadamec</dc:creator>
    <dc:date>2014-04-11T16:00:38Z</dc:date>
    <item>
      <title>Referencing Multiple hosts in Props.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Referencing-Multiple-hosts-in-Props-conf/m-p/128581#M26381</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Does anyone know if it's possible to create a single props.conf stanza that looks for multiple hosts? I've checked the props.conf spec and example files and had a look around Splunk answers but can't seem to find anything about it, although it seems as though it's possible for multiple sources. What I want to do is something like this:&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;[host::(192.168.2.52)|(192.168.69.15)|(winxp01)]&lt;BR /&gt;&lt;BR /&gt;
TRANSFORMS-null = transform-to-null&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;This would then reference the following stanza in transforms.conf:&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;[transform-to-null]&lt;BR /&gt;&lt;BR /&gt;
REGEX = .&lt;BR /&gt;&lt;BR /&gt;
DEST_KEY = queue&lt;BR /&gt;&lt;BR /&gt;
FORMAT = nullQueue&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;Which would of course send all of the events to the nullQueue, has anyone managed to achieve this?&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Matt&lt;/P&gt;</description>
      <pubDate>Fri, 11 Apr 2014 09:35:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Referencing-Multiple-hosts-in-Props-conf/m-p/128581#M26381</guid>
      <dc:creator>mattsutton</dc:creator>
      <dc:date>2014-04-11T09:35:38Z</dc:date>
    </item>
    <item>
      <title>Re: Referencing Multiple hosts in Props.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Referencing-Multiple-hosts-in-Props-conf/m-p/128582#M26382</link>
      <description>&lt;P&gt;Yes, it can be done.  According to the props.conf documentation it can be a single host, or a host matching pattern.  Generally, when they say 'matching pattern' they mean regex, so in your case it would be something like this:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;[host::(192\.168\.2\.52|192\.168\.69\.15|winxp01)]&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;But, I've never tried it.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Apr 2014 12:23:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Referencing-Multiple-hosts-in-Props-conf/m-p/128582#M26382</guid>
      <dc:creator>lukejadamec</dc:creator>
      <dc:date>2014-04-11T12:23:58Z</dc:date>
    </item>
    <item>
      <title>Re: Referencing Multiple hosts in Props.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Referencing-Multiple-hosts-in-Props-conf/m-p/128583#M26383</link>
      <description>&lt;P&gt;Thanks for your reply lukejadamec. I've already tried things like this but don't seem to have gotten anywhere. At least I now know it's based on regex which I'd forgotten originally! Also I'm not entirely sure which stanza would work anyway, since from my experience with regex I think it would need to be (this)|(that) as oppose to (this|that).&lt;/P&gt;</description>
      <pubDate>Fri, 11 Apr 2014 14:00:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Referencing-Multiple-hosts-in-Props-conf/m-p/128583#M26383</guid>
      <dc:creator>mattsutton</dc:creator>
      <dc:date>2014-04-11T14:00:21Z</dc:date>
    </item>
    <item>
      <title>Re: Referencing Multiple hosts in Props.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Referencing-Multiple-hosts-in-Props-conf/m-p/128584#M26384</link>
      <description>&lt;P&gt;No I believe that lukejadamec is right. If it is regex based, it should most likely be (this|that).&lt;/P&gt;</description>
      <pubDate>Fri, 11 Apr 2014 14:05:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Referencing-Multiple-hosts-in-Props-conf/m-p/128584#M26384</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2014-04-11T14:05:07Z</dc:date>
    </item>
    <item>
      <title>Re: Referencing Multiple hosts in Props.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Referencing-Multiple-hosts-in-Props-conf/m-p/128585#M26385</link>
      <description>&lt;P&gt;Q quick brush up on regex confirms that, still can't seem to get it working though &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; it has no problem filtering data for two individual hosts but once I make the host this|that or doesn't like it, I'll keep trying some things.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Apr 2014 15:17:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Referencing-Multiple-hosts-in-Props-conf/m-p/128585#M26385</guid>
      <dc:creator>mattsutton</dc:creator>
      <dc:date>2014-04-11T15:17:18Z</dc:date>
    </item>
    <item>
      <title>Re: Referencing Multiple hosts in Props.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Referencing-Multiple-hosts-in-Props-conf/m-p/128586#M26386</link>
      <description>&lt;P&gt;I found this post where one of the answers explains that you can use some "regex type operators" including pipe as or bounded by ().&lt;BR /&gt;
&lt;A href="http://answers.splunk.com/answers/24274/can-you-have-a-wildcard-in-a-propsconf-stanza-header-when-matching-sourcetypes"&gt;http://answers.splunk.com/answers/24274/can-you-have-a-wildcard-in-a-propsconf-stanza-header-when-matching-sourcetypes&lt;/A&gt; &lt;/P&gt;

&lt;P&gt;I also found more information in the props.conf doc under&lt;BR /&gt;
&lt;CODE&gt;**[&amp;lt;spec&amp;gt;] stanza patterns:**&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.0.2/Admin/Propsconf"&gt;http://docs.splunk.com/Documentation/Splunk/6.0.2/Admin/Propsconf&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Apr 2014 16:00:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Referencing-Multiple-hosts-in-Props-conf/m-p/128586#M26386</guid>
      <dc:creator>lukejadamec</dc:creator>
      <dc:date>2014-04-11T16:00:38Z</dc:date>
    </item>
    <item>
      <title>Re: Referencing Multiple hosts in Props.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Referencing-Multiple-hosts-in-Props-conf/m-p/128587#M26387</link>
      <description>&lt;P&gt;I'm going to venture a guess based on the docs that the period is not one of the available regex type operators, so that means they don't need to be escaped.  Did you try this:&lt;BR /&gt;
&lt;CODE&gt;[host::(192.168.2.52|192.168.69.15|winxp01)]&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Apr 2014 16:06:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Referencing-Multiple-hosts-in-Props-conf/m-p/128587#M26387</guid>
      <dc:creator>lukejadamec</dc:creator>
      <dc:date>2014-04-11T16:06:00Z</dc:date>
    </item>
    <item>
      <title>Re: Referencing Multiple hosts in Props.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Referencing-Multiple-hosts-in-Props-conf/m-p/128588#M26388</link>
      <description>&lt;P&gt;They don't need to be escaped.  Splunk props.conf document should show some examples.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Feb 2020 15:56:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Referencing-Multiple-hosts-in-Props-conf/m-p/128588#M26388</guid>
      <dc:creator>anwarmian</dc:creator>
      <dc:date>2020-02-17T15:56:19Z</dc:date>
    </item>
    <item>
      <title>Re: Referencing Multiple hosts in Props.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Referencing-Multiple-hosts-in-Props-conf/m-p/509660#M86685</link>
      <description>&lt;P&gt;can anyone help with this,&amp;nbsp; i cant find any clear examples in the props.conf docs,&amp;nbsp; and i cant get this to work in props.conf&amp;nbsp; (ive tried many different variations and many escaping techniques ).&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;[source::(udp:8002|udp:8009|udp:8012)]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;EXTRACT-blah......&lt;/P&gt;&lt;P&gt;any of them alone, ofcouse work as intended (ie&amp;nbsp;[source::udp:8002] works)&lt;/P&gt;&lt;P&gt;[source::udp:80**] works but covers too many&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jul 2020 07:54:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Referencing-Multiple-hosts-in-Props-conf/m-p/509660#M86685</guid>
      <dc:creator>spunk311z</dc:creator>
      <dc:date>2020-07-17T07:54:28Z</dc:date>
    </item>
    <item>
      <title>Re: Referencing Multiple hosts in Props.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Referencing-Multiple-hosts-in-Props-conf/m-p/561050#M92692</link>
      <description>&lt;P&gt;This worked for me:&lt;/P&gt;&lt;P&gt;[host::(10.3.4.2|10.12.3.4|IP3|IP4|and_so_on)]&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jul 2021 15:39:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Referencing-Multiple-hosts-in-Props-conf/m-p/561050#M92692</guid>
      <dc:creator>behlkush</dc:creator>
      <dc:date>2021-07-27T15:39:05Z</dc:date>
    </item>
  </channel>
</rss>

