Configure syslog forwarding or alerts
TanOS supports syslog forwarding, which sends all Appliance log messages to a remote syslog server, and alerting, which sends Appliance alerts to a syslog server, an SMTP email recipient, or both.
Syslog alerts versus forwarding
The syslog forwarding configuration under Appliance Configuration is separate from the syslog alert configuration in the Appliance Maintenance menu. Note these key differences:
-
Syslog configuration for alerts sends events that match the specified alert threshold severity (info, warn, and error).
-
Syslog forwarding configuration sends all messages located in /var/log/messages to a syslog destination.
Check the syslog status
The syslog status shows the last five log entries and the current syslog forwarding configuration.
Configure syslog forwarding
Access the syslog configuration menu
- Sign in to the TanOS console as a user with the tanadmin role.
- Enter A-4 (Appliance Configuration > Syslog Configuration).
Manage the syslog server trust certificate
If you use a trust certificate for TLS communication with your syslog server, import the certificate before you enable and configure server settings for syslog forwarding.
- Sign in to the TanOS console as a user with the tanadmin role.
- Enter A-4 (Appliance Configuration > Syslog Configuration).
- From the Syslog Configuration menu:
- Enter 2 to view the previously imported trust certificate.
- Enter 3 to paste the trust certificate in PEM format for import.
- Enter 4 to remove the previously imported trust certificate.
Manage the key pair for certificate authentication
If you use certificate authentication with your syslog server, add the necessary public-private key pair before you enable and configure server settings for syslog forwarding.
A key pair is required only for destinations that use TLS Auth, which authenticates this Appliance to the syslog server. A TLS destination with TLS Auth disabled needs only the syslog server trust certificate.
Import a key pair
- Use SFTP to copy the key file to the /incoming directory of the Tanium Server Appliance.
- Sign in to the TanOS console as a user with the tanadmin role.
- Enter A-4-8 (Appliance Configuration > Syslog Configuration > Load Key Pair for TLS Auth from SFTP incoming).
View or remove the previously imported key pair
- Sign in to the TanOS console as a user with the tanadmin role.
- Enter A-4 (Appliance Configuration > Syslog Configuration).
- From the Syslog Configuration menu:
- Enter 7 to view the key pair.
- Enter 9 to remove the key pair.
Configure syslog forwarding destinations
Syslog forwarding sends the same data that gets logged in /var/log/messages to each configured destination. TanOS supports multiple syslog forwarding destinations. If no destinations are configured, syslog forwarding is disabled.
-
If you do not enable RFC5424 output format, TanOS defaults to RFC3164 syslog output.
-
You must have imported a valid trust certificate for the syslog server to enable TLS communication with the server. For more information, see Manage the syslog server trust certificate.
-
You must have imported a key pair to enable certificate-based authentication with the server. For more information, see Manage the key pair for certificate authentication.
(Optional) Force the full FQDN to appear in syslog messages
By default, the internal syslog server determines whether the fully qualified domain name (FQDN) or only the host name appears in syslog messages. You can optionally force the FQDN to always appear.
- Sign in to the TanOS console as a user with the tanadmin role.
- Enter A-4-10 (Appliance Configuration > Syslog Configuration > Configure FQDN Behavior).
- Enter E to enable the setting and force the FQDN to always appear in syslog messages, or D to disable the setting and allow the internal server to decide whether the FQDN or only the host name should appear in syslog messages.
(Optional) Forward entries from other log files
You can forward entries to the configured syslog destination from other logs, including any custom logs you have created. You can associate a tag with each selected log file to identify the forwarded entries from that log.
You can forward logs only from the following directories on the Appliance:
-
/var/log
-
/opt/Tanium/TaniumServer/Logs
-
/opt/Tanium/TaniumServer/TDL_Logs
-
/opt/Tanium/TaniumModuleServer/Logs
-
/opt/Tanium/TaniumModuleServer/TDL_Logs
-
/opt/Tanium/TaniumZoneServer/Logs
-
/opt/Tanium/TaniumModuleServer/services/*-files/logs
For more information about available logs, see Overview of Tanium Appliance logs, reports, and troubleshooting features.
Configure syslog alerts
You can send Appliance alerts to a syslog server, an SMTP email recipient, or both. Syslog servers and SMTP are independent alerting destinations and receive the same alerts.
Enable or disable all alerts
The Global alert status setting controls whether TanOS sends alerts to any destination. When global alerts are disabled, TanOS sends no alerts to the syslog destination or the SMTP destination, however those destinations are configured.
- Sign in to the TanOS console as a user with the tanadmin role.
- Enter B-2-3 (Appliance Maintenance > Alerting > Configure Alerts).
- Enter 1 to enable or disable global alerts. The menu updates to show the current Global alert status.
Set the alert severity level
Use the Configure Alerts menu to set the alert severity threshold to info, warn, or error.
-
Info: Includes all alerts
-
Warn: Includes all error and warning alerts
-
Error: Includes error alerts
- Sign in to the TanOS console as a user with the tanadmin role.
- Enter B-2-3 (Appliance Maintenance > Alerting > Configure Alerts).
- Use the menu to set a severity level and enable/disable alerting.
Configure a syslog server destination for alerts
The test alert appears in the syslog server logs.