Skip to main content

Cornelis Technical Documentation

Name

log — Configures and displays the logs.

Syntax

log [show [LOG_LEVEL] [NUM_LINES]

log [fwd [<IP:PORT>] [test]]

log [clear]

log [config <option> <value> <--enable | --disable>]

Options

No option

Displays the complete log message history of the Daemon and System Event Logs.

show

Shows logs with the specified priority or lower (lower is more severe).

LOG_LEVEL

Specifies the log level to be displayed.

Options include:

all

Displays all log levels messages.

critical

Displays logs of critical level messages.

error

Displays logs of error-level messages.

warning

Displays logs of warning-level messages.

notice

Displays logs of notice-level messages.

info

Displays logs of info-level messages.

NUM_LINES

Specifies the number of lines to show.

fwd

Generates a test CSM event or specifies the IP/FQDN and port for log forwarding.

Options include:

<IP:PORT>

Specifies the IP/FQDN and port where logs should be forwarded.

test

Generates a test CSM event.

clear

Clears logs of specified types.

Options include:

No option

Clears all System Event and Daemon logs.

all

Clears both System Event and Daemon logs.

sel

Clears only the System Event Log.

daemon

Clears only the Daemon logs.

config

Sets various configuration options and values for log retention and storage.

Options include:

MaxRetentionSec

Sets the maximum time to store journal entries.

TIME

Value range: 86400 – 31536000 seconds

NOTE: This range equates to 24 hours – 1 year.

SystemMaxUse

Sets the maximum disk space the journal may use. Units: Bytes, Kilobytes (K), Megabytes (M).

SIZE

Values: 100K – 64M

SystemMaxFileSize

Sets the maximum size of individual journal files. Units: Bytes, Kilobytes (K), Megabytes (M).

SIZE

Values: 10K – 16M

MaxLevelStore

Sets the log level of messages to store.

Values include:

error

Shows logs of error- level messages.

warning

Shows logs of warning-level messages.

notice

Shows logs of notice-level messages.

info

Shows logs of info-level messages.

debug

Stores debug-level messages.

--enable

Enables configuration changes.

--disable

Disables configuration changes.

Examples

log show error
log show warning 10
log fwd 192.168.1.100:514
log fwd test
log clear all
log config MaxRetentionSec 86400 --enable
log config SystemMaxUse 100k --disable
log config MaxLevelStore debug
log config SystemMaxFileSize 10M