Article 6F0CR [SOLVED] logger command is not sending logs to /var/log/messages

[SOLVED] logger command is not sending logs to /var/log/messages

by
james000
from LinuxQuestions.org on (#6F0CR)
I have this Centos 7 server and I have one script, which is supposed to send logs output to /var/log/messages via logger
Code:[root@serv3 ~]# cat /export/home/splunk/splunk/etc/apps/app_customalertactions/bin/sendSyslogAlarm.sh | grep logger
export logging_agent="/usr/bin/logger"
[root@serv3 ~]#As this was not working, I tested logger command and it looks like it is not working as expected.
rsyslog.service is running
Code:[root@serv3 ~]# logger "This is a logging test"
[root@serv3 ~]# logger -p daemon.error "This is a logging error test"
[root@serv3 ~]# logger -t logtester -p daemon.error "This is a logging error test"
[root@serv3 ~]# journalctl --no-pager | grep -i test
[root@serv3 ~]# cat /var/log/messages | grep -i test
[root@serv3 ~]#Please advice, what I am missing here.
Thanks
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments