Hello Marc:
We are trying to have TACACS+ write log messages to /var/log/messages (which it does) and to /var/log/local6.log (which it does not).
here is our tacacs.conf file definition for logging:
#!/usr/local/sbin/tac_plus
##################################################
## Spawn needed instances
id = spawnd {
listen = { address = 0.0.0.0 port = 49}
listen = { address = 0.0.0.0 port = 4949 realm = tacacs_alt }
}
id = tac_plus {
# access log = syslog
accounting log = syslog
# authentication log = syslog
#
https://groups.google.com/forum/#!searchin/event-driven-servers/syslog/event-driven-servers/9YUJqYgCHdA/-pbRflYxZ0IJ syslog facility = local6
syslog level = debug
## Define attributes for all hosts
host = world {
## tacacs key
key = xxxxxxxxxxxxxxx
address =
0.0.0.0/0 }
...
Here is our /etc/rsyslog.conf file
# Save TACACS messages to their own file
local6.* /var/log/local6.log
All we ever see in the /var/log/local6.log file is lots of:
Mar 24 13:18:06 sandbox-bdcutler7-a02 tac_plus[13912]: epoll event notification mechanism is being used
Mar 24 13:18:06 sandbox-bdcutler7-a02 tac_plus[13911]: epoll event notification mechanism is being used
Mar 24 13:46:19 sandbox-bdcutler7-a02 tac_plus[14780]: epoll event notification mechanism is being used
Mar 24 13:46:19 sandbox-bdcutler7-a02 tac_plus[14779]: epoll event notification mechanism is being used
We do see the startup and authentication events (I am using the tactest.exe program to send in the login request):
Mar 24 13:46:19 sandbox-bdcutler7-a02 tac_plus[14777]: bind to [0.0.0.0]:49 succeeded
Mar 24 13:46:19 sandbox-bdcutler7-a02 tac_plus[14777]: bind to [0.0.0.0]:49 succeeded
Mar 24 13:46:19 sandbox-bdcutler7-a02 tac_plus[14777]: bind to [0.0.0.0]:4949 succeeded
Mar 24 13:46:19 sandbox-bdcutler7-a02 tac_plus[14777]: bind to [0.0.0.0]:4949 succeeded
Mar 24 13:46:19 sandbox-bdcutler7-a02 tac_plus[14780]: Version 201511101821 initialized
Mar 24 13:46:19 sandbox-bdcutler7-a02 tac_plus[14780]: Version 201511101821 initialized
Mar 24 13:46:19 sandbox-bdcutler7-a02 tac_plus[14779]: Version 201511101821 initialized
Mar 24 13:46:19 sandbox-bdcutler7-a02 tac_plus[14779]: Version 201511101821 initialized
Mar 24 13:47:33 sandbox-bdcutler7-a02 tac_plus[14779]: xxx.xxx.xxx.xxx: shell login for 'bdcutler' succeeded
Mar 24 13:47:33 sandbox-bdcutler7-a02 tac_plus[14779]: xxx.xxx.xxx.xxx: shell login for 'bdcutler' succeeded
(Note I commented out the ip addresses in the messages above).
This is running on a CentOS 7 (3.10.0-327.4.5.el7.x86_64) machine.
Any thoughts on what I am doing wrong?
Brian Cutler