<?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 Splunk Universal Forwarders audit logs merged - audit.conf configuration in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-Universal-Forwarders-audit-logs-merged-audit-conf/m-p/507005#M86283</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;As indicated here (&lt;A href="https://community.splunk.com/t5/Getting-Data-In/Why-am-I-unable-to-monitor-SPLUNK-HOME-var-log-splunk-audit-log/m-p/506185#M86203" target="_blank" rel="noopener"&gt;https://community.splunk.com/t5/Getting-Data-In/Why-am-I-unable-to-monitor-SPLUNK-HOME-var-log-splunk-audit-log/m-p/506185#M86203&lt;/A&gt;), I have been able to get the &lt;FONT face="courier new,courier"&gt;audit.log&lt;/FONT&gt; from our Universal Forwarders with &lt;FONT face="courier new,courier"&gt;audittrail&lt;/FONT&gt; sourcetype.&lt;/P&gt;&lt;P&gt;Unfortunately sometimes those events read from&amp;nbsp;&lt;FONT face="courier new,courier"&gt;$SPLUNK_HOME/var/log/splunk/audit.log&lt;/FONT&gt; are merged in a unique event (even if each event is in a new line and starts with a timestamp).&lt;/P&gt;&lt;P&gt;In our deployment we have Universal Forwarders sending data to Heavy Forwarders that then send them to Indexers:&lt;/P&gt;&lt;P&gt;UF --&amp;gt; HF --&amp;gt; IDX&lt;/P&gt;&lt;P&gt;What I tried to do is to deploy a &lt;FONT face="courier new,courier"&gt;props.conf&lt;/FONT&gt; on the HF to indicate the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[audittrail]
SHOULD_LINEMERGE = false
SEDCMD = s/\d{2}-\d{2}-\d{4} \d{2}:\d{2}:\d{2}\.\d{3}.* INFO  AuditLogger - //g&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But even the SEDCMD is not applied.&lt;/P&gt;&lt;P&gt;And I can see with the following command that the configuration are properly read in the HF:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;splunk btool props list --debug&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Due to that I tried adding this &lt;FONT face="courier new,courier"&gt;props.conf&lt;/FONT&gt; directly on the UF and it is working (but it is not a good solution for us because we don't want to force the local processing on the UF).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[audittrail]
SHOULD_LINEMERGE = false
SEDCMD = s/\d{2}-\d{2}-\d{4} \d{2}:\d{2}:\d{2}\.\d{3}.* INFO  AuditLogger - //g
force_local_processing = true&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I believe the issue is related to the fact that the audit logs from UF are sent to HF &lt;EM&gt;indexQueue&lt;/EM&gt; instead of &lt;EM&gt;parsingQueue&lt;/EM&gt;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried also to add the &lt;FONT face="courier new,courier"&gt;audit.conf&lt;/FONT&gt; file both in UF and HF as follow without any luck:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[default]
queueing=false&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Reading further on Splunk documentation (&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.0.4/Admin/Auditconf" target="_blank" rel="noopener"&gt;https://docs.splunk.com/Documentation/Splunk/8.0.4/Admin/Auditconf&lt;/A&gt;) :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;queueing = &amp;lt;boolean&amp;gt;
* Whether or not audit events are sent to the indexQueue.
* If set to "true", audit events are sent to the indexQueue.
* If set to "false", you must add an inputs.conf stanza to tail the
  audit log for the events reach your index.
* Default: true&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My questions are:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Do you know what does it means "&lt;EM&gt;If set to "false", you must add an inputs.conf stanza to tail the audit log for the events reach your index.&lt;/EM&gt;"&lt;/LI&gt;&lt;LI&gt;Do you have any idea on how to apply on the HF the &lt;FONT face="courier new,courier"&gt;props.conf&lt;/FONT&gt;&amp;nbsp;to the audit events coming from the UF without having to deploy it directly on UF with&amp;nbsp;&amp;nbsp;&lt;FONT face="courier new,courier"&gt;force_local_processing=true&lt;/FONT&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Thanks a lot,&lt;BR /&gt;Edoardo&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 02 Jul 2020 09:12:11 GMT</pubDate>
    <dc:creator>edoardo_vicendo</dc:creator>
    <dc:date>2020-07-02T09:12:11Z</dc:date>
    <item>
      <title>Splunk Universal Forwarders audit logs merged - audit.conf configuration</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-Universal-Forwarders-audit-logs-merged-audit-conf/m-p/507005#M86283</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;As indicated here (&lt;A href="https://community.splunk.com/t5/Getting-Data-In/Why-am-I-unable-to-monitor-SPLUNK-HOME-var-log-splunk-audit-log/m-p/506185#M86203" target="_blank" rel="noopener"&gt;https://community.splunk.com/t5/Getting-Data-In/Why-am-I-unable-to-monitor-SPLUNK-HOME-var-log-splunk-audit-log/m-p/506185#M86203&lt;/A&gt;), I have been able to get the &lt;FONT face="courier new,courier"&gt;audit.log&lt;/FONT&gt; from our Universal Forwarders with &lt;FONT face="courier new,courier"&gt;audittrail&lt;/FONT&gt; sourcetype.&lt;/P&gt;&lt;P&gt;Unfortunately sometimes those events read from&amp;nbsp;&lt;FONT face="courier new,courier"&gt;$SPLUNK_HOME/var/log/splunk/audit.log&lt;/FONT&gt; are merged in a unique event (even if each event is in a new line and starts with a timestamp).&lt;/P&gt;&lt;P&gt;In our deployment we have Universal Forwarders sending data to Heavy Forwarders that then send them to Indexers:&lt;/P&gt;&lt;P&gt;UF --&amp;gt; HF --&amp;gt; IDX&lt;/P&gt;&lt;P&gt;What I tried to do is to deploy a &lt;FONT face="courier new,courier"&gt;props.conf&lt;/FONT&gt; on the HF to indicate the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[audittrail]
SHOULD_LINEMERGE = false
SEDCMD = s/\d{2}-\d{2}-\d{4} \d{2}:\d{2}:\d{2}\.\d{3}.* INFO  AuditLogger - //g&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But even the SEDCMD is not applied.&lt;/P&gt;&lt;P&gt;And I can see with the following command that the configuration are properly read in the HF:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;splunk btool props list --debug&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Due to that I tried adding this &lt;FONT face="courier new,courier"&gt;props.conf&lt;/FONT&gt; directly on the UF and it is working (but it is not a good solution for us because we don't want to force the local processing on the UF).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[audittrail]
SHOULD_LINEMERGE = false
SEDCMD = s/\d{2}-\d{2}-\d{4} \d{2}:\d{2}:\d{2}\.\d{3}.* INFO  AuditLogger - //g
force_local_processing = true&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I believe the issue is related to the fact that the audit logs from UF are sent to HF &lt;EM&gt;indexQueue&lt;/EM&gt; instead of &lt;EM&gt;parsingQueue&lt;/EM&gt;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried also to add the &lt;FONT face="courier new,courier"&gt;audit.conf&lt;/FONT&gt; file both in UF and HF as follow without any luck:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[default]
queueing=false&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Reading further on Splunk documentation (&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.0.4/Admin/Auditconf" target="_blank" rel="noopener"&gt;https://docs.splunk.com/Documentation/Splunk/8.0.4/Admin/Auditconf&lt;/A&gt;) :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;queueing = &amp;lt;boolean&amp;gt;
* Whether or not audit events are sent to the indexQueue.
* If set to "true", audit events are sent to the indexQueue.
* If set to "false", you must add an inputs.conf stanza to tail the
  audit log for the events reach your index.
* Default: true&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My questions are:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Do you know what does it means "&lt;EM&gt;If set to "false", you must add an inputs.conf stanza to tail the audit log for the events reach your index.&lt;/EM&gt;"&lt;/LI&gt;&lt;LI&gt;Do you have any idea on how to apply on the HF the &lt;FONT face="courier new,courier"&gt;props.conf&lt;/FONT&gt;&amp;nbsp;to the audit events coming from the UF without having to deploy it directly on UF with&amp;nbsp;&amp;nbsp;&lt;FONT face="courier new,courier"&gt;force_local_processing=true&lt;/FONT&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Thanks a lot,&lt;BR /&gt;Edoardo&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jul 2020 09:12:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-Universal-Forwarders-audit-logs-merged-audit-conf/m-p/507005#M86283</guid>
      <dc:creator>edoardo_vicendo</dc:creator>
      <dc:date>2020-07-02T09:12:11Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Universal Forwarders audit logs merged - audit.conf configuration</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-Universal-Forwarders-audit-logs-merged-audit-conf/m-p/509512#M86666</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have been able to solve this with Splunk support.&lt;/P&gt;&lt;P&gt;So basically there are 2 options:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;OPTION 1 - enable UF audit.log monitoring + force local processing on UF&lt;/STRONG&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P class="lia-indent-padding-left-30px"&gt;This option increase a little bit the cpu consumption on UF because you have to parse the events directly on UF, but it will be enabled only for this specific sourcetype and usually few audit events per day on each UF are generated.&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;SPAN&gt;On UF:&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;SPAN&gt;myapp/local/inputs.conf&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;# Specific configuration to enable monitoring Splunk Universal Forwarder audit logs
# by default they are sent to null queue

#*nix
[monitor://$SPLUNK_HOME/var/log/splunk/audit.log]
index = _audit
sourcetype = audittrail
source = audittrail

#Windows
[monitor://$SPLUNK_HOME\var\log\splunk\audit.log]
index = _audit
sourcetype = audittrail
source = audittrail&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;myapp/local/props.conf&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[audittrail]
SHOULD_LINEMERGE = false
force_local_processing = true&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;OPTION 2 - enable UF audit.log monitoring + enable HF event parsing&lt;/STRONG&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;This has been tested only on *nix&lt;/P&gt;&lt;P&gt;On UF (local/inputs.conf)&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[monitor://$SPLUNK_HOME/var/log/splunk/audit.log]
index = _audit
sourcetype = ufw_audittrail
source = ufw_audittrail&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;on HF (local/props.conf)&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[ufw_audittrail]
LINE_BREAKER = ([\r\n]+)
MAX_TIMESTAMP_LOOKAHEAD = 30
SHOULD_LINEMERGE = false
TIME_FORMAT = %m-%d-%Y %H:%M:%S.%l %z
TIME_PREFIX = ^&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;BR /&gt;Edoardo&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jul 2020 13:23:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-Universal-Forwarders-audit-logs-merged-audit-conf/m-p/509512#M86666</guid>
      <dc:creator>edoardo_vicendo</dc:creator>
      <dc:date>2020-07-16T13:23:24Z</dc:date>
    </item>
  </channel>
</rss>

