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.
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.
-
Sign in to the TanOS console as a user with the tanadmin role.
-
Enter A-4-6 (Appliance Configuration > Syslog Configuration > Custom File Forwarding).
-
Use the following options to manage the forwarded log files:
-
Add a log file: Enter A to add a line, and then follow the prompts to specify the path and file name of a log file to forward and a tag to apply to forwarded entries from that log.
CODE------------------------------------------------------ >>> Custom File Forwarding <<< List files (one file per line) to forward out to syslog 1: /opt/Tanium/TaniumServer/Logs/log0.txt TS-log0 2: /opt/Tanium/TaniumZoneServer/Logs/log0.txt TZS-log0 A: Add a line X: Remove the file R: Return to previous menu RR: Return to top -------------------------------------------------------------------------------- Please select: a Enter the filename: /var/log/secure Enter the tag: secure -
Edit the file name and tag for a previously entered log file: Enter the line number of the log file to edit, enter E to edit the line, and then follow the prompts to edit the path and file name and tag.
-
Remove a log file from the list: Enter the line number of the log file to edit, enter X to delete the line.
-
Remove all log files from the list: Enter X.
-
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.
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.