<?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: Forward only audit data from /var/log/audit.log in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Forward-only-audit-data-from-var-log-audit-log/m-p/530150#M89261</link>
    <description>&lt;P&gt;# Documentation was not very clear, below is working&lt;/P&gt;&lt;P&gt;# Do not make changes to system.conf, as it broke a lot of things. Trust in your backup.&lt;/P&gt;&lt;P&gt;# Create cert with encrypted key.&lt;/P&gt;&lt;P&gt;/opt/splunk/etc/auth/dod/system-splunk-smn.pem&lt;/P&gt;&lt;P&gt;-----BEGIN CERTIFICATE-----&lt;BR /&gt;&amp;lt;snip&amp;gt;&lt;BR /&gt;-----END CERTIFICATE-----&lt;BR /&gt;-----BEGIN ENCRYPTED PRIVATE KEY-----&lt;BR /&gt;&amp;lt;snip&amp;gt;&lt;BR /&gt;-----END ENCRYPTED PRIVATE KEY-----&lt;/P&gt;&lt;P&gt;# Verify, it will prompt for password.&lt;BR /&gt;openssl s_client -connect &amp;lt;IP&amp;gt;:&amp;lt;PORT&amp;gt; -showcerts \&lt;BR /&gt;-cert /opt/splunk/etc/auth/dod/system-splunk-smn.pem \&lt;BR /&gt;-CAfile /opt/splunk/etc/auth/dod/system-dod.cacert&lt;/P&gt;&lt;P&gt;# set _TCP_ROUTING=monitoring_audit&lt;BR /&gt;vi /opt/splunk/etc/apps/search/local/inputs.conf&lt;/P&gt;&lt;P&gt;[monitor:///var/log/audit/audit.log]&lt;BR /&gt;disabled = false&lt;BR /&gt;index = index&lt;BR /&gt;sourcetype = linux_audit&lt;BR /&gt;host = loghost&lt;BR /&gt;_TCP_ROUTING=monitoring_audit&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#############&lt;BR /&gt;# Confiugre output for &amp;lt;IP&amp;gt;:&amp;lt;PORT&amp;gt;&lt;BR /&gt;#####&lt;BR /&gt;vi /opt/splunk/etc/system/local/outputs.conf&lt;/P&gt;&lt;P&gt;[tcpout]&lt;BR /&gt;indexAndForward = true&lt;BR /&gt;defaultGroup = monitoring_audit&lt;/P&gt;&lt;P&gt;[tcpout:monitoring_audit]&lt;BR /&gt;server = &amp;lt;IP&amp;gt;:&amp;lt;PORT&amp;gt;&lt;BR /&gt;disabled = 0&lt;BR /&gt;sslRootCAPath = /opt/splunk/etc/auth/dod/system-dod.cacert&lt;BR /&gt;sslPassword = &amp;lt;snip&amp;gt;&lt;BR /&gt;clientCert = /opt/splunk/etc/auth/dod/system-splunk-smn.pem&lt;BR /&gt;useClientSSLCompression = true&lt;BR /&gt;sendCookedData = false&lt;BR /&gt;sslVerifyServerCert = false&lt;BR /&gt;sslVersions = tls1.2&lt;/P&gt;&lt;P&gt;## Test config.&lt;BR /&gt;/opt/splunk/bin/splunk cmd btool outputs list tcpout&lt;BR /&gt;/opt/splunk/bin/splunk btool outputs list --debug&lt;BR /&gt;/opt/splunk/bin/splunk btool check --debug&lt;/P&gt;&lt;P&gt;# Fix any issues&lt;/P&gt;&lt;P&gt;systemctl restart splunk&lt;/P&gt;&lt;P&gt;## Note the sslPassword was setup with plain text, it got encrypted on restart&lt;/P&gt;&lt;P&gt;tcpdump host &amp;lt;IP&amp;gt; -i bond0&lt;BR /&gt;tcpdump -vv port &amp;lt;PORT&amp;gt; and "host &amp;lt;IP&amp;gt;" -i bond0&lt;/P&gt;&lt;P&gt;# Verified connection: Queue sometimes grows, the clears.&lt;BR /&gt;netstat -natp | grep &amp;lt;PORT&amp;gt;&lt;/P&gt;&lt;P&gt;Verified audit data being indexed into splunk&lt;/P&gt;</description>
    <pubDate>Fri, 20 Nov 2020 01:10:45 GMT</pubDate>
    <dc:creator>eric_hagen</dc:creator>
    <dc:date>2020-11-20T01:10:45Z</dc:date>
    <item>
      <title>Forward only audit data from /var/log/audit.log</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Forward-only-audit-data-from-var-log-audit-log/m-p/529835#M89239</link>
      <description>&lt;P&gt;splunk-8.1.0 server RHEL 8 system.&lt;/P&gt;&lt;P&gt;So following the instructions from:&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/6.6.2/Forwarding/Routeandfilterdatad" target="_blank" rel="noopener"&gt;https://docs.splunk.com/Documentation/Splunk/6.6.2/Forwarding/Routeandfilterdatad&lt;/A&gt;&lt;BR /&gt;Route inputs to specific indexers based on the data input&lt;/P&gt;&lt;P&gt;I configured the following:&lt;/P&gt;&lt;P&gt;vi /opt/splunk/etc/apps/search/local/inputs.conf&lt;/P&gt;&lt;P&gt;[monitor:///var/log/audit/audit.log]&lt;BR /&gt;disabled = false&lt;BR /&gt;index = abcd&lt;BR /&gt;sourcetype = linux_audit&lt;BR /&gt;host = smnloghost&lt;BR /&gt;_TCP_ROUTING=monitoring_audit&lt;/P&gt;&lt;P&gt;vi /opt/splunk/etc/system/local/outputs.conf&lt;/P&gt;&lt;P&gt;[tcpout:monitoring_audit]&lt;BR /&gt;server = &amp;lt;IP&amp;gt;:&amp;lt;PORT&amp;gt;&lt;BR /&gt;type = tcp&lt;BR /&gt;disabled = 0&lt;/P&gt;&lt;P&gt;/opt/splunk/bin/splunk cmd btool outputs list tcpout&lt;/P&gt;&lt;P&gt;Shows:&lt;/P&gt;&lt;P&gt;[tcpout:monitoring_audit]&lt;BR /&gt;disabled = 0&lt;BR /&gt;server = 214.16.207.174:6514&lt;BR /&gt;type = tcp&lt;/P&gt;&lt;P&gt;Restarted splunk&lt;/P&gt;&lt;P&gt;No network connection to &amp;lt;IP&amp;gt;, just the rsyslog forwarding syslog data.&lt;/P&gt;&lt;P&gt;netstat -natp | grep &amp;lt;IP&amp;gt;&lt;BR /&gt;tcp 0 0 1&amp;lt;IP&amp;gt;:&amp;lt;PORT&amp;gt; &amp;lt;IP&amp;gt;:&amp;lt;PORT&amp;gt; ESTABLISHED 123313/rsyslogd&lt;/P&gt;&lt;P&gt;How can I forward just the data input from the audit log?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Nov 2020 22:39:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Forward-only-audit-data-from-var-log-audit-log/m-p/529835#M89239</guid>
      <dc:creator>eric_hagen</dc:creator>
      <dc:date>2020-11-17T22:39:32Z</dc:date>
    </item>
    <item>
      <title>Re: Forward only audit data from /var/log/audit.log</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Forward-only-audit-data-from-var-log-audit-log/m-p/529838#M89241</link>
      <description>&lt;P&gt;telnet to remote host connects.&lt;BR /&gt;openssl s_client can connect.&lt;/P&gt;&lt;P&gt;/opt/splunk/var/log/splunk/splunkd.log&lt;/P&gt;&lt;P&gt;11-17-2020 22:24:20.315 +0000 INFO ServerRoles - Declared role=heavyweight_forwarder.&lt;BR /&gt;11-17-2020 22:24:20.335 +0000 INFO TcpOutputProc - found Whitelist forwardedindex.0.whitelist , RE : .*&lt;BR /&gt;11-17-2020 22:24:20.335 +0000 INFO TcpOutputProc - found Blacklist forwardedindex.1.blacklist , RE : _.*&lt;BR /&gt;11-17-2020 22:24:20.335 +0000 INFO TcpOutputProc - found Whitelist forwardedindex.2.whitelist , RE : (_audit|_internal|_introspection|_telemetry|_metrics|_metrics_rollup)&lt;BR /&gt;11-17-2020 22:24:20.335 +0000 INFO TcpOutputProc - Initializing connection for non-ssl forwarding to &amp;lt;IP&amp;gt;:&amp;lt;PORT&lt;BR /&gt;11-17-2020 22:24:20.335 +0000 INFO TcpOutputProc - tcpout group default-autolb-group using Auto load balanced forwarding&lt;BR /&gt;11-17-2020 22:24:20.335 +0000 INFO TcpOutputProc - Group default-autolb-group initialized with maxQueueSize=512000 in bytes.&lt;BR /&gt;11-17-2020 22:24:20.337 +0000 INFO TcpOutputProc - Initializing connection for non-ssl forwarding to &amp;lt;IP&amp;gt;:PORT&lt;BR /&gt;11-17-2020 22:24:20.337 +0000 INFO TcpOutputProc - tcpout group monitoring_audit using Auto load balanced forwarding&lt;BR /&gt;11-17-2020 22:24:20.337 +0000 INFO TcpOutputProc - Group monitoring_audit initialized with maxQueueSize=512000 in bytes.&lt;BR /&gt;11-17-2020 22:24:20.551 +0000 ERROR TcpOutputFd - Read error. Connection reset by peer&lt;BR /&gt;11-17-2020 22:24:20.689 +0000 ERROR TcpOutputFd - Read error. Connection reset by peer&lt;BR /&gt;11-17-2020 22:24:35.392 +0000 INFO ServerRoles - Undeclared role=heavyweight_forwarder.&lt;BR /&gt;11-17-2020 22:24:21.443 +0000 WARN LocalAppsAdminHandler - Using deprecated capabilities for write: admin_all_objects or edit_local_apps. See enable_install_apps in limits.conf&lt;BR /&gt;11-17-2020 22:24:31.082 +0000 WARN TcpOutputProc - The TCP output processor has paused the data flow. Forwarding to host_dest=&amp;lt;IP&amp;gt; inside output group default-autolb-group from host_src=host has been blocked for blocked_seconds=10. This can stall the data flow towards indexing and other network outputs. Review the receiving system's health in the Splunk Monitoring Console. It is probably not accepting data.&lt;BR /&gt;11-17-2020 22:24:35.392 +0000 INFO ServerRoles - Undeclared role=heavyweight_forwarder.&lt;BR /&gt;11-17-2020 22:24:41.095 +0000 WARN TcpOutputProc - The TCP output processor has paused the data flow. Forwarding to host_dest=&amp;lt;IP&amp;gt; inside output group default-autolb-group from host_src=host has been blocked for blocked_seconds=20. This can stall the data flow towards indexing and other network outputs. Review the receiving system's health in the Splunk Monitoring Console. It is probably not accepting data.&lt;BR /&gt;11-17-2020 22:24:41.396 +0000 WARN TcpOutputProc - Send via group=default-autolb-group timed out in 20.026 seconds due to reconfiguration.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Nov 2020 23:26:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Forward-only-audit-data-from-var-log-audit-log/m-p/529838#M89241</guid>
      <dc:creator>eric_hagen</dc:creator>
      <dc:date>2020-11-17T23:26:32Z</dc:date>
    </item>
    <item>
      <title>Re: Forward only audit data from /var/log/audit.log</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Forward-only-audit-data-from-var-log-audit-log/m-p/530150#M89261</link>
      <description>&lt;P&gt;# Documentation was not very clear, below is working&lt;/P&gt;&lt;P&gt;# Do not make changes to system.conf, as it broke a lot of things. Trust in your backup.&lt;/P&gt;&lt;P&gt;# Create cert with encrypted key.&lt;/P&gt;&lt;P&gt;/opt/splunk/etc/auth/dod/system-splunk-smn.pem&lt;/P&gt;&lt;P&gt;-----BEGIN CERTIFICATE-----&lt;BR /&gt;&amp;lt;snip&amp;gt;&lt;BR /&gt;-----END CERTIFICATE-----&lt;BR /&gt;-----BEGIN ENCRYPTED PRIVATE KEY-----&lt;BR /&gt;&amp;lt;snip&amp;gt;&lt;BR /&gt;-----END ENCRYPTED PRIVATE KEY-----&lt;/P&gt;&lt;P&gt;# Verify, it will prompt for password.&lt;BR /&gt;openssl s_client -connect &amp;lt;IP&amp;gt;:&amp;lt;PORT&amp;gt; -showcerts \&lt;BR /&gt;-cert /opt/splunk/etc/auth/dod/system-splunk-smn.pem \&lt;BR /&gt;-CAfile /opt/splunk/etc/auth/dod/system-dod.cacert&lt;/P&gt;&lt;P&gt;# set _TCP_ROUTING=monitoring_audit&lt;BR /&gt;vi /opt/splunk/etc/apps/search/local/inputs.conf&lt;/P&gt;&lt;P&gt;[monitor:///var/log/audit/audit.log]&lt;BR /&gt;disabled = false&lt;BR /&gt;index = index&lt;BR /&gt;sourcetype = linux_audit&lt;BR /&gt;host = loghost&lt;BR /&gt;_TCP_ROUTING=monitoring_audit&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#############&lt;BR /&gt;# Confiugre output for &amp;lt;IP&amp;gt;:&amp;lt;PORT&amp;gt;&lt;BR /&gt;#####&lt;BR /&gt;vi /opt/splunk/etc/system/local/outputs.conf&lt;/P&gt;&lt;P&gt;[tcpout]&lt;BR /&gt;indexAndForward = true&lt;BR /&gt;defaultGroup = monitoring_audit&lt;/P&gt;&lt;P&gt;[tcpout:monitoring_audit]&lt;BR /&gt;server = &amp;lt;IP&amp;gt;:&amp;lt;PORT&amp;gt;&lt;BR /&gt;disabled = 0&lt;BR /&gt;sslRootCAPath = /opt/splunk/etc/auth/dod/system-dod.cacert&lt;BR /&gt;sslPassword = &amp;lt;snip&amp;gt;&lt;BR /&gt;clientCert = /opt/splunk/etc/auth/dod/system-splunk-smn.pem&lt;BR /&gt;useClientSSLCompression = true&lt;BR /&gt;sendCookedData = false&lt;BR /&gt;sslVerifyServerCert = false&lt;BR /&gt;sslVersions = tls1.2&lt;/P&gt;&lt;P&gt;## Test config.&lt;BR /&gt;/opt/splunk/bin/splunk cmd btool outputs list tcpout&lt;BR /&gt;/opt/splunk/bin/splunk btool outputs list --debug&lt;BR /&gt;/opt/splunk/bin/splunk btool check --debug&lt;/P&gt;&lt;P&gt;# Fix any issues&lt;/P&gt;&lt;P&gt;systemctl restart splunk&lt;/P&gt;&lt;P&gt;## Note the sslPassword was setup with plain text, it got encrypted on restart&lt;/P&gt;&lt;P&gt;tcpdump host &amp;lt;IP&amp;gt; -i bond0&lt;BR /&gt;tcpdump -vv port &amp;lt;PORT&amp;gt; and "host &amp;lt;IP&amp;gt;" -i bond0&lt;/P&gt;&lt;P&gt;# Verified connection: Queue sometimes grows, the clears.&lt;BR /&gt;netstat -natp | grep &amp;lt;PORT&amp;gt;&lt;/P&gt;&lt;P&gt;Verified audit data being indexed into splunk&lt;/P&gt;</description>
      <pubDate>Fri, 20 Nov 2020 01:10:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Forward-only-audit-data-from-var-log-audit-log/m-p/530150#M89261</guid>
      <dc:creator>eric_hagen</dc:creator>
      <dc:date>2020-11-20T01:10:45Z</dc:date>
    </item>
  </channel>
</rss>

