<?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: Route and filter universal  forwarder for two apps in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Route-and-filter-universal-forwarder-for-two-apps/m-p/461694#M79694</link>
    <description>&lt;P&gt;You need to separate your stanza names so that they are not competing, like this:&lt;/P&gt;

&lt;P&gt;[~/etc/deployment-apps/app1/local] $ cat props.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[uLinga]
TRANSFORMS-set= uLinga_setnull, uLinga_setparsing
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;[ ~/etc/deployment-apps/app1/local] $ cat transforms.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[uLinga_setnull]
REGEX = .
DEST_KEY = queue
FORMAT = nullQueue

[uLinga_setparsing]
REGEX = INFRASFT
DEST_KEY = queue
FORMAT = indexQueue
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;[ ~/etc/deployment-apps/app2/local] $ cat props.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[Aux]
TRANSFORMS-set = Auz_setnull, Aux_setparsing
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;[ ~/etc/deployment-apps/app2/local] $ cat transforms.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[Aux_setnull]
REGEX = .
DEST_KEY = queue
FORMAT = nullQueue

[Aux_setparsing]
REGEX = INFO|ERROR|WARN
DEST_KEY = queue
FORMAT = indexQueue
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 03 Apr 2020 12:27:40 GMT</pubDate>
    <dc:creator>woodcock</dc:creator>
    <dc:date>2020-04-03T12:27:40Z</dc:date>
    <item>
      <title>Route and filter universal  forwarder for two apps</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Route-and-filter-universal-forwarder-for-two-apps/m-p/461691#M79691</link>
      <description>&lt;P&gt;Hope everyone is keeping safe.&lt;/P&gt;

&lt;P&gt;I'm following this document &lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Forwarding/Routeandfilterdatad"&gt;https://docs.splunk.com/Documentation/Splunk/latest/Forwarding/Routeandfilterdatad&lt;/A&gt; (Discard specific events and keep the rest) &lt;BR /&gt;
The first app is working as expected, however when I've created a second app the filtering is not working &lt;BR /&gt;
Both apps send data to same index, but the apps are on different servers and different logs. we are using Universal Forwarders&lt;BR /&gt;
App1&lt;/P&gt;

&lt;P&gt;[ ~/etc/deployment-apps/app1/local] $ cat props.conf &lt;BR /&gt;
[uLinga]&lt;BR /&gt;
TRANSFORMS-set= setnull,setparsing&lt;/P&gt;

&lt;P&gt;[ ~/etc/deployment-apps/app1/local] $ cat transforms.conf &lt;BR /&gt;
[setnull]&lt;BR /&gt;
REGEX = .&lt;BR /&gt;
DEST_KEY = queue&lt;BR /&gt;
FORMAT = nullQueue&lt;/P&gt;

&lt;P&gt;[setparsing]&lt;BR /&gt;
REGEX = INFRASFT&lt;BR /&gt;
DEST_KEY = queue&lt;BR /&gt;
FORMAT = indexQueue&lt;/P&gt;

&lt;P&gt;App2&lt;BR /&gt;
[ ~/etc/deployment-apps/app2/local] $ cat props.conf&lt;BR /&gt;
[Aux]&lt;BR /&gt;
TRANSFORMS-set = setnull,setparsing&lt;/P&gt;

&lt;P&gt;[ ~/etc/deployment-apps/app2/local] $ cat transforms.conf&lt;BR /&gt;
[setnull]&lt;BR /&gt;
REGEX = .&lt;BR /&gt;
DEST_KEY = queue&lt;BR /&gt;
FORMAT = nullQueue&lt;/P&gt;

&lt;P&gt;[setparsing]&lt;BR /&gt;
REGEX = INFO|ERROR|WARN &lt;BR /&gt;
DEST_KEY = queue&lt;BR /&gt;
FORMAT = indexQueue&lt;/P&gt;

&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Mon, 30 Mar 2020 23:20:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Route-and-filter-universal-forwarder-for-two-apps/m-p/461691#M79691</guid>
      <dc:creator>MicMoo</dc:creator>
      <dc:date>2020-03-30T23:20:38Z</dc:date>
    </item>
    <item>
      <title>Re: Route and filter universal  forwarder for two apps</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Route-and-filter-universal-forwarder-for-two-apps/m-p/461692#M79692</link>
      <description>&lt;P&gt;Hi MicMoo,&lt;/P&gt;

&lt;P&gt;Please post the two apps and their &lt;CODE&gt;.conf&lt;/CODE&gt; files so people are able to help you.&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
      <pubDate>Tue, 31 Mar 2020 00:06:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Route-and-filter-universal-forwarder-for-two-apps/m-p/461692#M79692</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2020-03-31T00:06:05Z</dc:date>
    </item>
    <item>
      <title>Re: Route and filter universal  forwarder for two apps</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Route-and-filter-universal-forwarder-for-two-apps/m-p/461693#M79693</link>
      <description>&lt;P&gt;Run:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;splunk btool transforms list --debug
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You will likely find that you need to uniquely name your transform stanzas otherwise one will overwrite the other...&lt;/P&gt;</description>
      <pubDate>Fri, 03 Apr 2020 00:32:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Route-and-filter-universal-forwarder-for-two-apps/m-p/461693#M79693</guid>
      <dc:creator>gjanders</dc:creator>
      <dc:date>2020-04-03T00:32:39Z</dc:date>
    </item>
    <item>
      <title>Re: Route and filter universal  forwarder for two apps</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Route-and-filter-universal-forwarder-for-two-apps/m-p/461694#M79694</link>
      <description>&lt;P&gt;You need to separate your stanza names so that they are not competing, like this:&lt;/P&gt;

&lt;P&gt;[~/etc/deployment-apps/app1/local] $ cat props.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[uLinga]
TRANSFORMS-set= uLinga_setnull, uLinga_setparsing
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;[ ~/etc/deployment-apps/app1/local] $ cat transforms.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[uLinga_setnull]
REGEX = .
DEST_KEY = queue
FORMAT = nullQueue

[uLinga_setparsing]
REGEX = INFRASFT
DEST_KEY = queue
FORMAT = indexQueue
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;[ ~/etc/deployment-apps/app2/local] $ cat props.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[Aux]
TRANSFORMS-set = Auz_setnull, Aux_setparsing
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;[ ~/etc/deployment-apps/app2/local] $ cat transforms.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[Aux_setnull]
REGEX = .
DEST_KEY = queue
FORMAT = nullQueue

[Aux_setparsing]
REGEX = INFO|ERROR|WARN
DEST_KEY = queue
FORMAT = indexQueue
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 03 Apr 2020 12:27:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Route-and-filter-universal-forwarder-for-two-apps/m-p/461694#M79694</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2020-04-03T12:27:40Z</dc:date>
    </item>
    <item>
      <title>Re: Route and filter universal  forwarder for two apps</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Route-and-filter-universal-forwarder-for-two-apps/m-p/461695#M79695</link>
      <description>&lt;P&gt;Thank you ,&lt;BR /&gt;
Managed to sort it out, issue was with the output file on the HF app.&lt;/P&gt;</description>
      <pubDate>Sun, 05 Apr 2020 21:20:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Route-and-filter-universal-forwarder-for-two-apps/m-p/461695#M79695</guid>
      <dc:creator>MicMoo</dc:creator>
      <dc:date>2020-04-05T21:20:27Z</dc:date>
    </item>
  </channel>
</rss>

