<?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: Data forwarded as syslog gets always indexed in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Data-forwarded-as-syslog-gets-always-indexed/m-p/57864#M11313</link>
    <description>&lt;P&gt;A possible hack is to define an index that doesn't exist on the final destination indexer.&lt;/P&gt;

&lt;P&gt;data as sourcetype=syslog/index=whathever &lt;BR /&gt;
-&amp;gt; forwarded to heavy forwarder with syslog forwarding, and splunk forwarding to another indexer&lt;BR /&gt;
-&amp;gt; on last indexer the index "whathever" doesn't exit, the events are dropped (and plenty of yellow banners appears to warn you, hilarity ensue) &lt;/P&gt;</description>
    <pubDate>Mon, 09 Sep 2013 21:07:27 GMT</pubDate>
    <dc:creator>yannK</dc:creator>
    <dc:date>2013-09-09T21:07:27Z</dc:date>
    <item>
      <title>Data forwarded as syslog gets always indexed</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Data-forwarded-as-syslog-gets-always-indexed/m-p/57854#M11303</link>
      <description>&lt;P&gt;I filtered some of our Windows events before indexing. This worked perfectly. &lt;BR /&gt;&lt;BR /&gt;
We had the idea to send the filtered data to a remote system for archiving via syslog. &lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;UPDATE 3&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;Clarification: This is what we try to accomplish:&lt;/P&gt;

&lt;P&gt;Universal Forwarders -- in splunk format --&amp;gt; Filter 2 way&lt;BR /&gt;&lt;BR /&gt;
 1. into index of Splunk Server (Indexer)&lt;BR /&gt;&lt;BR /&gt;
 2. as syslog to --&amp;gt; Remote Syslog Server&lt;BR /&gt;&lt;/P&gt;

&lt;P&gt;Everything works find except that ALL the data that gets forwarded as syslog ALSO gets indexed and there seems to be no way to avoid this. There is no way to filter the incoming data stream an route a data stream into the indexer and another to a remote syslog server. &lt;/P&gt;

&lt;P&gt;This is the content of the &lt;STRONG&gt;props.conf&lt;/STRONG&gt;:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[source::WinEventLog...]
TRANSFORMS-filter=filterWinFw,filterEventIDs
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This is the content of the &lt;STRONG&gt;transforms.conf&lt;/STRONG&gt; - the old config that worked perfectly is commented out:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[filterWinFw]
REGEX = (169\.254\.|bin\\splunkd.exe)
# DEST_KEY = queue
# FORMAT = nullQueue
DEST_KEY = _SYSLOG_ROUTING
FORMAT = syslogarchive

[filterEventIDs]
REGEX=EventCode=(4656|5447|5154|5145|5156|4957|4634|4663|4658|4688|4768|4769|4689)
# DEST_KEY = queue
# FORMAT = nullQueue
DEST_KEY = _SYSLOG_ROUTING
FORMAT = syslogarchive
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This is the &lt;STRONG&gt;outputs.conf&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[syslog:syslogarchive]
indexAndForward = false
server = 10.1.1.12:1577
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;What happens as expected is the syslog forwarding. BUT - it still indexes these events which is not the desired result. &lt;BR /&gt;
Any ideas?&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;UPDATE 1&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;I tried to change the &lt;STRONG&gt;transforms.conf&lt;/STRONG&gt; to add another format that sends the events to the nullQueue - without effect:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[filterWinFw]
REGEX = (169\.254\.|bin\\splunkd.exe)
DEST_KEY = _SYSLOG_ROUTING
FORMAT = syslogarchive,send_to_null

[filterEventIDs]
REGEX=EventCode=(4656|5447|5154|5145|5156|4957|4634|4663|4658|4688|4768|4769|4689)
DEST_KEY = _SYSLOG_ROUTING
FORMAT = syslogarchive,send_to_null

[send_to_null]
REGEX = .
DEST_KEY = queue
FORMAT = nullQueue
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;UPDATE 2&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;I even tried this in &lt;STRONG&gt;outputs.conf&lt;/STRONG&gt; without success and tried to apply "selectiveIndexing":&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[syslog]
index = false
indexAndForward = false

[tcpout]
index = false
indexAndForward = false

[syslog:syslogarchive]
index = false
indexAndForward = false
server = 10.1.1.12:1577
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;UPDATE 4&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;I even tried this:&lt;/P&gt;

&lt;P&gt;Section in &lt;STRONG&gt;props.conf&lt;/STRONG&gt;:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[source::WinEventLog...]
TRANSFORMS-sendsyslog=syslogWinFw,syslogEventIDs
TRANSFORMS-filter=filterWinFw,filterEventIDs
TRANSFORMS-index=winnativeindex
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Section in &lt;STRONG&gt;transforms.conf&lt;/STRONG&gt;:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[winnativeindex]
REGEX = .
FORMAT = win_native
DEST_KEY = _MetaData:Index

[filterWinFw]
REGEX = (169\.254\.|bin\\splunkd.exe)
DEST_KEY = queue
FORMAT = nullQueue

[filterEventIDs]
REGEX=EventCode=(4656|4658|4769|5156|5158|5447)
DEST_KEY = queue
FORMAT = nullQueue

[syslogWinFw]
REGEX = (169\.254\.|bin\\splunkd.exe)
DEST_KEY = _SYSLOG_ROUTING
FORMAT = syslogarchive

[syslogEventIDs]
REGEX=EventCode=(4656|4658|4769|5156|5158|5447)
DEST_KEY = _SYSLOG_ROUTING
FORMAT = syslogarchive
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Result:&lt;BR /&gt;
 1. Filtered log gets indexed&lt;BR /&gt;
 2. No Syslog sending&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;UPDATE 5&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;I also tried these 3 versions - Result: Filtering = Yes, Syslog Forwarding = No. &lt;BR /&gt;&lt;BR /&gt;
It seems that the filters always apply before the _SYSLOG_ROUTING is done no matter what order I use. &lt;BR /&gt;
(I checked the forwarding by removing the "filter.." statements and yes, everything gets forwarded via syslog as expected)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;TRANSFORMS-send_and_filter=syslogWinFw,filterWinFw,syslogEventIDs,filterEventIDs
TRANSFORMS-index=winnativeindex

TRANSFORMS-send_and_filter=filterWinFw,syslogWinFw,filterEventIDs,syslogEventIDs
TRANSFORMS-index=winnativeindex

TRANSFORMS-send=syslogWinFw,syslogEventIDs
TRANSFORMS-xfilter=filterWinFw,filterEventIDs
TRANSFORMS-index=winnativeindex
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 28 Sep 2020 14:44:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Data-forwarded-as-syslog-gets-always-indexed/m-p/57854#M11303</guid>
      <dc:creator>FRoth</dc:creator>
      <dc:date>2020-09-28T14:44:04Z</dc:date>
    </item>
    <item>
      <title>Re: Data forwarded as syslog gets always indexed</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Data-forwarded-as-syslog-gets-always-indexed/m-p/57855#M11304</link>
      <description>&lt;P&gt;I found this other post, but even if I add another FORMAT like the "send_to_null" mentioned in the post, the data gets indexed. &lt;BR /&gt;
&lt;A href="http://answers.splunk.com/answers/34747/send-filtered-data-to-syslog-and-not-index-it" target="_blank"&gt;http://answers.splunk.com/answers/34747/send-filtered-data-to-syslog-and-not-index-it&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 14:44:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Data-forwarded-as-syslog-gets-always-indexed/m-p/57855#M11304</guid>
      <dc:creator>FRoth</dc:creator>
      <dc:date>2020-09-28T14:44:06Z</dc:date>
    </item>
    <item>
      <title>Re: Data forwarded as syslog gets always indexed</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Data-forwarded-as-syslog-gets-always-indexed/m-p/57856#M11305</link>
      <description>&lt;P&gt;It seems that data that get forwarded via Syslog is always indexed and there is no way to avoid this. Disappointing.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2013 15:06:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Data-forwarded-as-syslog-gets-always-indexed/m-p/57856#M11305</guid>
      <dc:creator>FRoth</dc:creator>
      <dc:date>2013-09-09T15:06:29Z</dc:date>
    </item>
    <item>
      <title>Re: Data forwarded as syslog gets always indexed</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Data-forwarded-as-syslog-gets-always-indexed/m-p/57857#M11306</link>
      <description>&lt;P&gt;First off, you might be falling afoul of the way the parsing rules work when reassigning sourcetypes. Data coming in via syslog is assigned a sourcetype (whether at inputs.conf or from the &lt;EM&gt;sending&lt;/EM&gt; side by props.conf source:: or other rules). The parsing rules (including sending to the null queue) apply &lt;EM&gt;once&lt;/EM&gt;, top to bottom, left to right, for the &lt;EM&gt;incoming&lt;/EM&gt; sourcetype.&lt;/P&gt;

&lt;P&gt;So let's say you have a syslog sourcetype, and you set up some transforms.conf to recognize that "oh hey, those are really Windows Event logs, like WinEventLog:Security". Great, you've changed the sourcetype. What you might then try to do is null queue some of those by setting up a transforms.conf entry relative to the [WinEventLog:Security] sourcetype. That won't work, because those parsing rules won't fire. Only if the transforms.conf entry you have for null queueing those events is assigned to the original [syslog] sourcetype, will it work.&lt;/P&gt;

&lt;P&gt;Second, the &lt;EM&gt;source&lt;/EM&gt; of the data (your first props.conf rule) may no longer be matching the filename. Instead, it's probably something like "udp:514". I don't know specifically, since you didn't include your server's inputs.conf.&lt;/P&gt;

&lt;P&gt;So try checking against the "only one parsing pass" rule, or maybe it's the source.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2013 15:17:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Data-forwarded-as-syslog-gets-always-indexed/m-p/57857#M11306</guid>
      <dc:creator>sowings</dc:creator>
      <dc:date>2013-09-09T15:17:49Z</dc:date>
    </item>
    <item>
      <title>Re: Data forwarded as syslog gets always indexed</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Data-forwarded-as-syslog-gets-always-indexed/m-p/57858#M11307</link>
      <description>&lt;P&gt;Ok, there might be a misunderstanding. The data comes in from Splunk Universal Forwarders. I am talking about filtering this content and send the filtered content to a remote syslog server before it gets indexed. &lt;BR /&gt;
I am going to clear this up in the initial post.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2013 15:31:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Data-forwarded-as-syslog-gets-always-indexed/m-p/57858#M11307</guid>
      <dc:creator>FRoth</dc:creator>
      <dc:date>2013-09-09T15:31:42Z</dc:date>
    </item>
    <item>
      <title>Re: Data forwarded as syslog gets always indexed</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Data-forwarded-as-syslog-gets-always-indexed/m-p/57859#M11308</link>
      <description>&lt;P&gt;I see your "send_to_null" added as part of the FORMAT key of your transforms. That's the wrong place for it. You need to list send_to_null as its OWN transform hung off of the TRANSFORMS list on your props.conf entry for the source.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 14:44:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Data-forwarded-as-syslog-gets-always-indexed/m-p/57859#M11308</guid>
      <dc:creator>sowings</dc:creator>
      <dc:date>2020-09-28T14:44:17Z</dc:date>
    </item>
    <item>
      <title>Re: Data forwarded as syslog gets always indexed</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Data-forwarded-as-syslog-gets-always-indexed/m-p/57860#M11309</link>
      <description>&lt;P&gt;Ok, I'll try that. But the "filterWinFw,filterEventIDs" transforms apply regular expressions to filter events from the data stream I would like to index. These lines that get filtered out should be routed to a remote syslog server and not get indexed. If I add a "send_to_null" to the "filterWinFw,filterEventIDs" statement, it would send the events to the remote syslog and then everything (else) to nullQueue. But your comment gave me another idea.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 14:44:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Data-forwarded-as-syslog-gets-always-indexed/m-p/57860#M11309</guid>
      <dc:creator>FRoth</dc:creator>
      <dc:date>2020-09-28T14:44:20Z</dc:date>
    </item>
    <item>
      <title>Re: Data forwarded as syslog gets always indexed</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Data-forwarded-as-syslog-gets-always-indexed/m-p/57861#M11310</link>
      <description>&lt;P&gt;Ok, then you'll have to "sendWinFwToSyslog" as one transform, then "filterWinFw" as a second, using the same matching regex, but two different DEST_KEY / FORMAT pairs.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2013 15:53:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Data-forwarded-as-syslog-gets-always-indexed/m-p/57861#M11310</guid>
      <dc:creator>sowings</dc:creator>
      <dc:date>2013-09-09T15:53:49Z</dc:date>
    </item>
    <item>
      <title>Re: Data forwarded as syslog gets always indexed</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Data-forwarded-as-syslog-gets-always-indexed/m-p/57862#M11311</link>
      <description>&lt;P&gt;Jupp - thanks - please see UPDATE 4 if everything is as expected. I tried and failed.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2013 20:09:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Data-forwarded-as-syslog-gets-always-indexed/m-p/57862#M11311</guid>
      <dc:creator>FRoth</dc:creator>
      <dc:date>2013-09-09T20:09:04Z</dc:date>
    </item>
    <item>
      <title>Re: Data forwarded as syslog gets always indexed</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Data-forwarded-as-syslog-gets-always-indexed/m-p/57863#M11312</link>
      <description>&lt;P&gt;With update4, I believe that the TRANSFORMS are sorted lexically based upon the right &lt;BR /&gt;
hand side of the dash. Try this instead:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;&lt;BR /&gt;
[source::WinEventLog...]&lt;BR /&gt;
TRANSFORMS-filter_and_send=syslogWinFw,filterWinFw,syslogEventIDs,filterEventIDs&lt;BR /&gt;
TRANSFORMS-index=winnativeindex&lt;BR /&gt;
&lt;CODE&gt;&lt;/CODE&gt;&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Note that you'll have to restart the indexer(s) for these changes to take effect after making the edits.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 14:44:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Data-forwarded-as-syslog-gets-always-indexed/m-p/57863#M11312</guid>
      <dc:creator>sowings</dc:creator>
      <dc:date>2020-09-28T14:44:39Z</dc:date>
    </item>
    <item>
      <title>Re: Data forwarded as syslog gets always indexed</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Data-forwarded-as-syslog-gets-always-indexed/m-p/57864#M11313</link>
      <description>&lt;P&gt;A possible hack is to define an index that doesn't exist on the final destination indexer.&lt;/P&gt;

&lt;P&gt;data as sourcetype=syslog/index=whathever &lt;BR /&gt;
-&amp;gt; forwarded to heavy forwarder with syslog forwarding, and splunk forwarding to another indexer&lt;BR /&gt;
-&amp;gt; on last indexer the index "whathever" doesn't exit, the events are dropped (and plenty of yellow banners appears to warn you, hilarity ensue) &lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2013 21:07:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Data-forwarded-as-syslog-gets-always-indexed/m-p/57864#M11313</guid>
      <dc:creator>yannK</dc:creator>
      <dc:date>2013-09-09T21:07:27Z</dc:date>
    </item>
    <item>
      <title>Re: Data forwarded as syslog gets always indexed</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Data-forwarded-as-syslog-gets-always-indexed/m-p/57865#M11314</link>
      <description>&lt;P&gt;Ok, that did not work. Filters are applied but no syslog forwarding. If I remove the filter transforms, everything gets forwarded.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Sep 2013 08:04:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Data-forwarded-as-syslog-gets-always-indexed/m-p/57865#M11314</guid>
      <dc:creator>FRoth</dc:creator>
      <dc:date>2013-09-11T08:04:25Z</dc:date>
    </item>
    <item>
      <title>Re: Data forwarded as syslog gets always indexed</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Data-forwarded-as-syslog-gets-always-indexed/m-p/57866#M11315</link>
      <description>&lt;P&gt;Hey - this worked I tried this config&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[filterWinFw]
REGEX = (169\.254\.|bin\\splunkd.exe)
DEST_KEY = _MetaData:Index
FORMAT = dummy

[filterEventIDs]
REGEX=EventCode=(4656|4658|4769|5156|5158|5447)
DEST_KEY = _MetaData:Index
FORMAT = dummy
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;OL&gt;
&lt;LI&gt;Syslog gets Forwarded, 2. Messages do not appear in my index. Is there a way to suppress the yellow banners telling me that messages could not be send to the indexer "dummy"?&lt;/LI&gt;
&lt;/OL&gt;</description>
      <pubDate>Wed, 11 Sep 2013 09:10:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Data-forwarded-as-syslog-gets-always-indexed/m-p/57866#M11315</guid>
      <dc:creator>FRoth</dc:creator>
      <dc:date>2013-09-11T09:10:15Z</dc:date>
    </item>
    <item>
      <title>Re: Data forwarded as syslog gets always indexed</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Data-forwarded-as-syslog-gets-always-indexed/m-p/57867#M11316</link>
      <description>&lt;P&gt;Sorry that the "usual method" didn't work out for you.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Sep 2013 13:28:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Data-forwarded-as-syslog-gets-always-indexed/m-p/57867#M11316</guid>
      <dc:creator>sowings</dc:creator>
      <dc:date>2013-09-11T13:28:46Z</dc:date>
    </item>
    <item>
      <title>Re: Data forwarded as syslog gets always indexed</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Data-forwarded-as-syslog-gets-always-indexed/m-p/57868#M11317</link>
      <description>&lt;P&gt;Silencing the warning messages permanently might be a bit tricky; you'd have to have a fair bit of Javascript knowledge to tweak the way the messaging module behaves. I've found, though, that once you silence the warnings once (using Manager -&amp;gt; User Interface -&amp;gt; Bulletin Messages), they stay gone, at least until the indexers or the search head restart.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Sep 2013 13:30:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Data-forwarded-as-syslog-gets-always-indexed/m-p/57868#M11317</guid>
      <dc:creator>sowings</dc:creator>
      <dc:date>2013-09-11T13:30:19Z</dc:date>
    </item>
  </channel>
</rss>

