Skip to content

Expose recent log messages over NETCONF/RESTCONF #1642

Description

@troglobit

Description

Expose recent log messages over NETCONF/RESTCONF, replacing cat /var/log/... over SSH in the test system.

The upcoming sysklogd 3.0 adds a membuf ring buffer and logread. Model an RPC, or operational data under /syslog, returning the last N entries with the RFC 5424 fields split out (timestamp, severity, facility, app-name, msgid, structured-data, message), filterable by msgid and app-name.

Additional Information

  • Possibly the read half of the log-marker work in Add RPC for injecting log messages to a device #1639: a test injects msgid=test-start, then reads back everything since
  • Should be designed together with the planned log streaming from DUTs to the test server, so the two share one message model
  • Depends on enabling membuf in the Infix syslog config

General Information

Anyone can help out by sponsoring development of new features or contributing pull requests.
Please use this issue for discussions related to the feature.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    triagePending investigation & classification (CCB)

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions