-
Notifications
You must be signed in to change notification settings - Fork 55
Description
Hello!
We want to archive tlog messages using rsyslog.
Messages are logged using a journal.
When we log in to the terminal with the account used by tlog, it is filtered by the programming name as shown below.
cat /var/log/messages |grep tlog
May 22 14:32:07 test-dev1 -tlog-rec-session[180885]: {"ver":"2.3","host":"test-dev1","rec":"50f61539226e4cc18376bbd7d5431435-2c295-2e9f7be","user":"test1" ...
But when I use "SSH" in the remote place, the programming name is output differently as shown below.
For example if I use ansible or sftp it displays differently.
ssh test1@test-dev1 "echo TEST..."
cat /var/log/messages |grep tlog
May 22 14:36:07 test-dev1 tlog-rec-session[182166]: {"ver":"2.3","host":"test-dev1","rec":"50f61539226e4cc18376bbd7d5431435-2c796-2ea5946","user":"test1" ...
I want to set up filtering to use rsyslog, but why is the programming name different?
(-tlog-rec-session // tlog-rec-session)