Linux System Logs Content Pack

The following content pack is available for use with a Graylog Illuminate license and Graylog Enterprise or Graylog Security. Contact sales to learn more about obtaining Illuminate.

Linux is a ubiquitous, open-source operating system that powers everything from servers and cloud infrastructure to desktop systems and embedded devices.

This technology pack provides common log parsing, normalization, and enrichment for Debian/Ubuntu Linux distributions.

Supported Distributions

  • Ubuntu 20.04 LTS (Focal Fossa) and 22.04 LTS (Jammy Jellyfish)

  • Debian 11 (bullseye) and 12 (bookworm)

Requirements

  • Graylog 6.0.1+ with a valid Enterprise license

Stream Configuration

This technology pack includes 1 stream:

  • Illuminate:Linux System Messages

Hint: If this stream does not exist prior to the activation of this pack then it will be created and configured to route messages to this stream and the associated index set. There should not be any stream rules configured for this stream.

Index Set Configuration

This technology pack includes 1 index set definition:

  • Linux System Logs

Hint: If this index set is already defined, then nothing will be changed. If this index set does not exist, then it will be created with retention settings of a daily rotation and 90 days of retention. These settings can be adjusted as required after installation.

What is Provided

  • Rules to parse, normalize, and enrich Linux system log messages

  • A dashboard displaying events and statistics of interest

Events Processed by This Technology Pack

The Linux System Logs content pack supports the following log types. Generic processing will be provided for log types not listed.

  • SSH Logs

  • Login Logs

  • Sudo Logs

  • Su Logs

  • PAM Logs

  • Systemd Logs

  • Cron Logs

  • UFW Logs

  • Iptables Logs

  • User Activity Logs

  • Group Activity Logs

GIM Categorization

GIM categorization is provided for the following messages:

Log Type Vendor Event Description GIM Category GIM Subcategory GIM Event Type Code
login Failed login on console or terminal authentication authentication.access notice 101001
login Root login on console or terminal authentication authentication.access notice 101000
login Successful login on console or terminal authentication authentication.logon 100000
login Authentication message authentication authentication.default 109999
pam Authentication success authentication authentication.credential validation 100500
pam Authentication failure (credential validation) authentication authentication.credential validation 100501
pam Access denied authentication authentication.access policy 101500
pam Account notice authentication authentication.access notice 101000
pam Session opened authentication authentication.logon 100000
pam Session closed authentication authentication.logon 100001
pam Authentication failure authentication authentication.default 109999
ssh Postponed keyboard-interactive authentication authentication.default 109999
ssh Accepted password authentication authentication.credential validation 100500
ssh Accepted publickey authentication authentication.credential validation 100500
ssh Failed password (for invalid/illegal user) authentication authentication.credential validation 100501
ssh Failed publickey (for invalid/illegal user) authentication authentication.credential validation 100501
ssh Connection closed by authenticating user authentication authentication.logoff 102500
ssh Connection reset by invalid/illegal user authentication authentication.credential validation 100501
ssh Invalid user authentication authentication.credential validation 100501
ssh Disconnected from user authentication authentication.logoff 102501
ssh User not allowed by access control directives authentication authentication.access policy 101500
ssh Root login refused authentication authentication.access policy 101500
ssh User not allowed because account is locked authentication authentication.access policy 101502
su User switched to another user authentication authentication.access notice 101000
su Authentication message authentication authentication.default 109999
sudo User executed a command with elevated privileges authentication authentication.access notice 101000
sudo Authentication message authentication authentication.default 109999
systemd Starting or stopping systemd unit service service.start 210000
systemd Stopping or completing systemd unit service service.stop 210100
systemd Reloading systemd unit service service.configuration 211000
systemd Failed with result service service.state 211504
systemd Service status message service service.default 219999
cron Cron job initiated process process.execute 190000
cron Cron job completed process process.end 190100
kernel/ufw UFW ALLOW/BLOCK network network.network connection 120000
kernel/ufw UFW AUDIT network network.default 129999
kernel/iptables IPTABLES-ALLOW/DROP network network.network connection 120000
kernel/iptables iptables-log network network.default 129999
users/groups Changed password expiry for user iam iam.default 119999
users/groups Changed user information iam iam.default 119999
users/groups Changed user shell iam iam.default 119999
users/groups User added to group iam iam.default 119999
users/groups User removed from group iam iam.default 119999
users/groups User created iam iam.default 119999
users/groups User deleted iam iam.default 119999
users/groups User username changed iam iam.default 119999
users/groups User password changed iam iam.default 119999
users/groups User ID changed iam iam.default 119999
users/groups Group removed iam iam.default 119999
users/groups Group ID changed iam iam.default 119999
users/groups Group password changed by user iam iam.default 119999
users/groups Group password removed by user iam iam.default 119999

Message Fields Included in This Pack

General Parsing

SSH

Login

Sudo

Su

PAM

Systemd

Cron

User and Group Activity

UFW

Iptables

Hint: User names are case-sensitive in some Linux distributions. While case is retained in the original message and in extracted fields like user_name and source_user_name, searches will treat the values as case-insensitive. For example, a search for user_name:user1 would return results containing both cases such as user1 and USER1.

Linux System Logs Spotlight Content Pack

This spotlight offers a dashboard with 4 tabs:

Overview

SSH

Sudo

User and Group Activity