<?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 Removing subset of logs from index while maintaining route to syslog server in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Removing-subset-of-logs-from-index-while-maintaining-route-to/m-p/533466#M89602</link>
    <description>&lt;P&gt;Windows security logs are sent to a heavy forwarder, which is configured to send these logs to a syslog server in addition to sending to the indexers. (We have additional tools that require the Windows security logs).&lt;/P&gt;&lt;P&gt;So, right now the config is almost exactly by the book following these docs:&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/SplunkCloud/8.1.2011/Forwarding/Forwarddatatothird-partysystemsd" target="_blank" rel="noopener"&gt;https://docs.splunk.com/Documentation/SplunkCloud/8.1.2011/Forwarding/Forwarddatatothird-partysystemsd&lt;/A&gt;&lt;/P&gt;&lt;P&gt;What we're trying to do is move these logs into a different tool and slowly remove them from Splunk indexes, going by region as each domain controller has a specific naming scheme, but retaining the forwarding to syslog.&lt;/P&gt;&lt;P&gt;The problem I'm running into is that adding a nullroute also stops logs from coming into syslog. I think I understand why it's happening. The hostname matches in both stanzas, so the nullroute overwrites the syslog route. I've tried changing the order, making sure the syslog route is last, but that doesn't change anything.&lt;/P&gt;&lt;P&gt;I've been looking and I can't figure out a way to avoid this. The only unique thing I can match on is hostname. I also don't see that transforms or props has a logical NOT, i.e., for these do this, for these do not do this.&lt;/P&gt;&lt;P&gt;props.conf&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[source::WinEventLog:Security]
TRUNCATE = 0
TRANSFORMS-routing = routeAll, routeSubset, routeSubset2, routeNull&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;transforms.conf&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[routeAll]
REGEX=(.)
DEST_KEY=_TCP_ROUTING
FORMAT=splunkssl

[routeSubset]
SOURCE_KEY=MetaData:Host
REGEX=(?i)(.*dc[0-9][0-9].*)
DEST_KEY=_TCP_ROUTING
FORMAT=splunkssl

[routeSubset2]
SOURCE_KEY=MetaData:Host
REGEX=(?i)(.*dc[0-9][0-9].*)
DEST_KEY=_SYSLOG_ROUTING
FORMAT=my_syslog_server

[routeNull]
SOURCE_KEY=MetaData:Host
REGEX=(?i)(.*region1dc[0-9][0-9].*|.*region2dc[0-9][0-9].*)
DEST_KEY = queue
FORMAT = nullQueue&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 17 Dec 2020 16:07:35 GMT</pubDate>
    <dc:creator>timori</dc:creator>
    <dc:date>2020-12-17T16:07:35Z</dc:date>
    <item>
      <title>Removing subset of logs from index while maintaining route to syslog server</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Removing-subset-of-logs-from-index-while-maintaining-route-to/m-p/533466#M89602</link>
      <description>&lt;P&gt;Windows security logs are sent to a heavy forwarder, which is configured to send these logs to a syslog server in addition to sending to the indexers. (We have additional tools that require the Windows security logs).&lt;/P&gt;&lt;P&gt;So, right now the config is almost exactly by the book following these docs:&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/SplunkCloud/8.1.2011/Forwarding/Forwarddatatothird-partysystemsd" target="_blank" rel="noopener"&gt;https://docs.splunk.com/Documentation/SplunkCloud/8.1.2011/Forwarding/Forwarddatatothird-partysystemsd&lt;/A&gt;&lt;/P&gt;&lt;P&gt;What we're trying to do is move these logs into a different tool and slowly remove them from Splunk indexes, going by region as each domain controller has a specific naming scheme, but retaining the forwarding to syslog.&lt;/P&gt;&lt;P&gt;The problem I'm running into is that adding a nullroute also stops logs from coming into syslog. I think I understand why it's happening. The hostname matches in both stanzas, so the nullroute overwrites the syslog route. I've tried changing the order, making sure the syslog route is last, but that doesn't change anything.&lt;/P&gt;&lt;P&gt;I've been looking and I can't figure out a way to avoid this. The only unique thing I can match on is hostname. I also don't see that transforms or props has a logical NOT, i.e., for these do this, for these do not do this.&lt;/P&gt;&lt;P&gt;props.conf&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[source::WinEventLog:Security]
TRUNCATE = 0
TRANSFORMS-routing = routeAll, routeSubset, routeSubset2, routeNull&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;transforms.conf&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[routeAll]
REGEX=(.)
DEST_KEY=_TCP_ROUTING
FORMAT=splunkssl

[routeSubset]
SOURCE_KEY=MetaData:Host
REGEX=(?i)(.*dc[0-9][0-9].*)
DEST_KEY=_TCP_ROUTING
FORMAT=splunkssl

[routeSubset2]
SOURCE_KEY=MetaData:Host
REGEX=(?i)(.*dc[0-9][0-9].*)
DEST_KEY=_SYSLOG_ROUTING
FORMAT=my_syslog_server

[routeNull]
SOURCE_KEY=MetaData:Host
REGEX=(?i)(.*region1dc[0-9][0-9].*|.*region2dc[0-9][0-9].*)
DEST_KEY = queue
FORMAT = nullQueue&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Dec 2020 16:07:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Removing-subset-of-logs-from-index-while-maintaining-route-to/m-p/533466#M89602</guid>
      <dc:creator>timori</dc:creator>
      <dc:date>2020-12-17T16:07:35Z</dc:date>
    </item>
  </channel>
</rss>

