SV-250327r1043188_rule
V-250327
SRG-APP-000109-AS-000070
IBMW-LS-000230
CAT II
10
To send Liberty logs to a centralized syslog system, the Elastic environment must be set up as per the ELK stack/Elasticsearch directions. Once that is completed, configure the server.xml. The following is a sample configuration. Individual keystore, truststore, and authentication settings will vary. The SME must substitute their own values as needed.
The message, audit, and accessLog sources must be included at a minimum.
For additional information refer to the IBM website:
https://www.ibm.com/support/knowledgecenter/SSEQTP_liberty/com.ibm.WebSphere.wlp.doc/ae/twlp_analytics_logstash.html
EXAMPLE:
<featureManager>
<feature>logstashCollector-1.0</feature>
</featureManager>
<keyStore id="defaultKeyStore" password="xxxxxxx" />
<keyStore id="defaultTrustStore" location="trust.jks" password="xxxxxxx" />
<ssl id="myTLSConfig" trustStoreRef="defaultTrustStore" keyStoreRef="defaultKeyStore" />
<logstashCollector
source="message,accessLog,audit"
hostName="your ELK stack server"
port="Your ELK stack port"
sslRef="myTLSConfig">
</logstashCollector>
As a privileged user with local file access to ${server.config.dir}/server.xml, verify the logstashCollector-1.0 feature is enabled.
grep -i -A5 logstashcollector server.xml
EXAMPLE:
<featureManager>
<feature>logstashCollector-1.0</feature>
</featureManager>
<logstashCollector source="message,accessLog,audit"
hostName="<ip address of logstash server>"
port="<port of logstash server>"
sslRef="DefaultTLSSettings"
</logstashCollector>
If "logstashCollector" is not a configured feature and the logstashCollector "source" setting does not contain "message,accessLog,audit", this is a finding.
V-250327
False
IBMW-LS-000230
As a privileged user with local file access to ${server.config.dir}/server.xml, verify the logstashCollector-1.0 feature is enabled.
grep -i -A5 logstashcollector server.xml
EXAMPLE:
<featureManager>
<feature>logstashCollector-1.0</feature>
</featureManager>
<logstashCollector source="message,accessLog,audit"
hostName="<ip address of logstash server>"
port="<port of logstash server>"
sslRef="DefaultTLSSettings"
</logstashCollector>
If "logstashCollector" is not a configured feature and the logstashCollector "source" setting does not contain "message,accessLog,audit", this is a finding.
M
5424