<?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: Monitor,transforms? in Monitoring Splunk</title>
    <link>https://community.splunk.com/t5/Monitoring-Splunk/Monitor-transforms/m-p/65923#M7183</link>
    <description>&lt;P&gt;Thanks. That was really helpful. I actually had that document open and was reading it.  What I hadn't reached was the part about null, and discarding.&lt;/P&gt;

&lt;P&gt;I am going to retry this.&lt;BR /&gt;
I am interested in the light-forwarders.  Understanding they don't filter, but the indexer will.  I do have a follow up question. 
Let's assume I have three devices.  Each with lots of logs.  One does DHCP, one DNS, and the Last is a Wireless AP.  &lt;/P&gt;

&lt;P&gt;I want to send these all to a syslog receiver.  Would I do something like this?&lt;/P&gt;

&lt;P&gt;In props.conf:&lt;/P&gt;

&lt;P&gt;[syslog]&lt;BR /&gt;
TRANSFORMS-set= setnull,DNS,DHCP,Wireless&lt;BR /&gt;&lt;/P&gt;

&lt;P&gt;In transforms.conf:&lt;/P&gt;

&lt;P&gt;[setnull]&lt;BR /&gt;
    REGEX = .&lt;BR /&gt;
    DEST_KEY = queue&lt;BR /&gt;
    FORMAT = nullQueue&lt;BR /&gt;&lt;/P&gt;

&lt;P&gt;[DNS]&lt;BR /&gt;
REGEX = "insert regex to parse for DNS from device 'B'"&lt;BR /&gt;
DEST_KEY = queue&lt;BR /&gt;
FORMAT = indexQueue&lt;BR /&gt;&lt;/P&gt;

&lt;P&gt;[DHCP]&lt;BR /&gt;
REGEX = insert regex to parse for DHCP from device 'A'&lt;BR /&gt;
DEST_KEY = queue&lt;BR /&gt;
FORMAT = indexQueue&lt;BR /&gt;&lt;/P&gt;

&lt;P&gt;[Wireless]&lt;BR /&gt;
REGEX = .&lt;BR /&gt;
DEST_KEY = insert regex to match wireless device IP&lt;BR /&gt;
FORMAT = indexQueue&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 23 Mar 2011 23:30:38 GMT</pubDate>
    <dc:creator>jgauthier</dc:creator>
    <dc:date>2011-03-23T23:30:38Z</dc:date>
    <item>
      <title>Monitor,transforms?</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/Monitor-transforms/m-p/65921#M7181</link>
      <description>&lt;P&gt;I am trying to monitor a file on a forwarder.  I don't wish to send all the contents, as there is unnecessary data in it.&lt;/P&gt;

&lt;P&gt;Please tell me if I am doing this correctly, because everything is being logged, not just things that match "TCP"&lt;/P&gt;

&lt;P&gt;props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[source::///var/log/remote/remotefirewall]
TRANSFORMS-routing=remoteASA
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;inputs.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor:///var/log/remote/remotefirewall]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;transforms.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[remoteASA]
REGEX = (?msi)TCP
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Basic setup for testing. Once I get it working, I have a more advanced regex I need to apply.&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 23 Mar 2011 09:19:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/Monitor-transforms/m-p/65921#M7181</guid>
      <dc:creator>jgauthier</dc:creator>
      <dc:date>2011-03-23T09:19:56Z</dc:date>
    </item>
    <item>
      <title>Re: Monitor,transforms?</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/Monitor-transforms/m-p/65922#M7182</link>
      <description>&lt;P&gt;The best practice way to only index some events is by using the nullQueue functionality.  See &lt;A href="http://www.splunk.com/base/Documentation/4.2/Deploy/Routeandfilterdatad" rel="nofollow"&gt;http://www.splunk.com/base/Documentation/4.2/Deploy/Routeandfilterdatad&lt;/A&gt; for information on how to configure nullQueue.  There are also several answers questions on it as well.&lt;/P&gt;

&lt;P&gt;A light forwarder or universal forwarder will always send the whole content of the file to the indexer - as no parsing is done by these forwarders.  A full (or heavy) forwarder will parse the events locally at the forwarder.  &lt;/P&gt;

&lt;P&gt;If you are using a light or universal forwarder, the nullQueue configuration must be done at the indexer.  All of the data from the file will be sent to the indexer first and filtered there.  &lt;/P&gt;

&lt;P&gt;If you a using a heavy forwarder, the nullQueue configuration must be done on that forwarder - and it will perform local filtering before passing on preparsed events.&lt;/P&gt;

&lt;P&gt;Typical practice today is the light forwarder (or universal in 4.2) approach, unless you have specific reasons otherwise.  It does use extra bandwidth, however.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Mar 2011 20:11:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/Monitor-transforms/m-p/65922#M7182</guid>
      <dc:creator>dwaddle</dc:creator>
      <dc:date>2011-03-23T20:11:42Z</dc:date>
    </item>
    <item>
      <title>Re: Monitor,transforms?</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/Monitor-transforms/m-p/65923#M7183</link>
      <description>&lt;P&gt;Thanks. That was really helpful. I actually had that document open and was reading it.  What I hadn't reached was the part about null, and discarding.&lt;/P&gt;

&lt;P&gt;I am going to retry this.&lt;BR /&gt;
I am interested in the light-forwarders.  Understanding they don't filter, but the indexer will.  I do have a follow up question. 
Let's assume I have three devices.  Each with lots of logs.  One does DHCP, one DNS, and the Last is a Wireless AP.  &lt;/P&gt;

&lt;P&gt;I want to send these all to a syslog receiver.  Would I do something like this?&lt;/P&gt;

&lt;P&gt;In props.conf:&lt;/P&gt;

&lt;P&gt;[syslog]&lt;BR /&gt;
TRANSFORMS-set= setnull,DNS,DHCP,Wireless&lt;BR /&gt;&lt;/P&gt;

&lt;P&gt;In transforms.conf:&lt;/P&gt;

&lt;P&gt;[setnull]&lt;BR /&gt;
    REGEX = .&lt;BR /&gt;
    DEST_KEY = queue&lt;BR /&gt;
    FORMAT = nullQueue&lt;BR /&gt;&lt;/P&gt;

&lt;P&gt;[DNS]&lt;BR /&gt;
REGEX = "insert regex to parse for DNS from device 'B'"&lt;BR /&gt;
DEST_KEY = queue&lt;BR /&gt;
FORMAT = indexQueue&lt;BR /&gt;&lt;/P&gt;

&lt;P&gt;[DHCP]&lt;BR /&gt;
REGEX = insert regex to parse for DHCP from device 'A'&lt;BR /&gt;
DEST_KEY = queue&lt;BR /&gt;
FORMAT = indexQueue&lt;BR /&gt;&lt;/P&gt;

&lt;P&gt;[Wireless]&lt;BR /&gt;
REGEX = .&lt;BR /&gt;
DEST_KEY = insert regex to match wireless device IP&lt;BR /&gt;
FORMAT = indexQueue&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Mar 2011 23:30:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/Monitor-transforms/m-p/65923#M7183</guid>
      <dc:creator>jgauthier</dc:creator>
      <dc:date>2011-03-23T23:30:38Z</dc:date>
    </item>
    <item>
      <title>Re: Monitor,transforms?</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/Monitor-transforms/m-p/65924#M7184</link>
      <description>&lt;P&gt;This is driving me nuts.  I am missing something fundamental.&lt;/P&gt;

&lt;P&gt;[source::.../var/log/remote/remotefirewall]&lt;BR /&gt;
sourcetype=cisco_asa&lt;BR /&gt;
TRANSFORMS-set= remoteASA&lt;BR /&gt;&lt;/P&gt;

&lt;P&gt;[remoteASA]&lt;BR /&gt;
REGEX = TCP&lt;BR /&gt;
DEST_KEY = _TCP_ROUTING&lt;BR /&gt;
FORMAT = tcpout&lt;BR /&gt;&lt;/P&gt;

&lt;P&gt;This is logging everything in it that does NOT contain "TCP".  I thought it would log the other way.  Shouldn't it log what matches TCP?&lt;/P&gt;

&lt;P&gt;I change it to:&lt;BR /&gt;
REGEX = (?i)deny&lt;BR /&gt;
and it stops logging anything with [dD]eny.&lt;/P&gt;

&lt;P&gt;This seems to completely negate what this says:
&lt;A href="http://www.splunk.com/base/Documentation/4.2/Deploy/Routeandfilterdatad" rel="nofollow"&gt;http://www.splunk.com/base/Documentation/4.2/Deploy/Routeandfilterdatad&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;I got here because I was trying to follow the "Keep specific events and discard the rest" section, and I was having absolutely no luck.&lt;/P&gt;

&lt;P&gt;so, I started to isolate the config.&lt;/P&gt;

&lt;P&gt;Thanks for the help/explanation.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Mar 2011 04:23:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/Monitor-transforms/m-p/65924#M7184</guid>
      <dc:creator>jgauthier</dc:creator>
      <dc:date>2011-03-24T04:23:37Z</dc:date>
    </item>
    <item>
      <title>Re: Monitor,transforms?</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/Monitor-transforms/m-p/65925#M7185</link>
      <description>&lt;P&gt;I was able to solve this.   Basically, on a forwarder you always send the output queue to indexQueue.  I was manually setting it above to the forwarder config.  This did not work.&lt;/P&gt;

&lt;P&gt;Changing it to the indexQueue made all the magic happen.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Mar 2011 06:24:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/Monitor-transforms/m-p/65925#M7185</guid>
      <dc:creator>jgauthier</dc:creator>
      <dc:date>2011-03-25T06:24:53Z</dc:date>
    </item>
  </channel>
</rss>

