Skip to main content

Log source

The sources that write to the systemd journal. osapi dsl behavior get --name source and osapi dsl behavior method get show the same.

Behavior​

Namesource
DescriptionThe sources that write to the systemd journal
Placementnode
Underlog
Arealogs
Internalno
APIyes
CLIyes
Nextno
Platformslinux
Sudonone
Runsnone
Writesnone
Keeps stateno
Usesnone
Used bynone

Methods (1)​

NAMEVERBHTTPROUTEPERMISSIONDESCRIPTION
listreadGET/api/node/{hostname}/log/sourcelog:readList the sources of the journal

Types (1)​

NAMEINPUTOUTPUT
listListInput[]Source { name }

Settings (0)​

None. Declare them with behavior.Config.

Telemetry​

Spanbehavior.source.<method>
Child spansexec journalctl
Metricsosapi_behavior_calls_total, osapi_behavior_duration_seconds, osapi_behavior_changes_total
Attributesosapi.behavior.name, osapi.behavior.method, osapi.behavior.verb, osapi.behavior.outcome, osapi.behavior.changed
Recorded inputsnone

Method list​

Namelist
Verbread
DescriptionList the sources of the journal
DetailRuns journalctl --field=SYSLOG_IDENTIFIER: each syslog identifier that has an entry, once, sorted. A name here is what log list takes as unit when the source is a systemd unit.
HTTPGET
Route/api/node/{hostname}/log/source
Permissionlog:read
Commandosapi client node log source list
Input typeListInput
Output type[]Source

Input (0)​

None. The method takes no input; its command needs only --target.

Output (1)​

FIELDTYPEDESCRIPTION
namestringThe syslog identifier, such as sshd

Examples (1)​

EXAMPLEINPUTOUTPUT
The sources(none)[name=cron] [name=nginx] [name=sshd]