I have
rsyslogd -v
rsyslogd 7.4.7, compiled with:
FEATURE_REGEXP: Yes
FEATURE_LARGEFILE: No
GSSAPI Kerberos 5 support: Yes
FEATURE_DEBUG (debug build, slow code): No
32bit Atomic operations supported: Yes
64bit Atomic operations supported: Yes
Runtime Instrumentation (slow code): No
uuid support: Yes
See http://www.rsyslog.com for more information.
installed.
I created a conf item
cat /etc/rsyslog.d/test.conf
module(load="imuxsock")
input(type="imuxsock" Socket="/var/chroot/test/dev/log"
CreatePath="on")
if $programname == 'test' then {
action(type="omfile" sync="off" file="/var/log/test/test.log")
}
if $programname == 'test' then stop
The socket path does NOT exist
ls -ald /var/chroot/test
ls: cannot access /var/chroot/test: No such file or directory
Reading
http://www.rsyslog.com/doc/master/configuration/modules/imuxsock.html
"CreatePath [on/off] - create directories in the socket path if
they do not already exist."
iiuc, rsyslog should create the socket path.
On restart
systemctl restart rsyslog
it doesn't
tail -f /var/log/messages
Aug 18 08:40:04 tgdesktop rsyslogd: [origin software="rsyslogd"
swVersion="7.4.7" x-pid="25998" x-info="http://www.rsyslog.com"] exiting on
signal 15.
Aug 18 08:40:04 tgdesktop rsyslogd: [origin software="rsyslogd"
swVersion="7.4.7" x-pid="26370" x-info="http://www.rsyslog.com"] start
Aug 18 08:40:04 tgdesktop rsyslogd: cannot create
'/var/chroot/test/dev/log': No such file or directory
Aug 18 08:40:04 tgdesktop systemd[1]: Starting System Logging
Service...
Aug 18 08:40:04 tgdesktop systemd[1]: Started System Logging
Service.
ls -ald /var/chroot/test
ls: cannot access /var/chroot/test: No such file or directory
How do I get that path auto-created?
Terry
_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com/professional-services/
What's up with rsyslog? Follow https://twitter.com/rgerhards
NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad of
sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you DON'T LIKE
THAT.