02-29-2012 06:05 AM - edited 03-11-2019 03:36 PM
Hello,
I can't figure this out. I am sending logs from one ASA to our syslog server and it displays on the syslog server as the hostname of the ASA, however our other ASA shows its IP, how can I get the first ASA to send its logs and show as its IP and not hostname as I prefer this?
Thanks
02-29-2012 08:37 AM
I don't think this is a setting on the ASA causing the behavior you are seeing. The ASA command for sending logs to a syslog server is very basic without any option for choosing to use a name (or not):
hostname(config)# logging host interface_name ip_address [tcp[/port] | udp[/port]] [format emblem]
I suspect something on the syslog server - does it perhaps have a local hosts file entry for the ASA appearing by hostname?
07-11-2012 06:51 AM
Use this command:
asa5520(config)#logging device-id ?
configure mode commands/options:
context-name Specifies to use the name of the current security context to
uniquely identify syslog messages from the system
hostname Specifies to use the hostname to uniquely identify syslog
messages from the system
ipaddress Specifies to use the IP address of the Firewall interface to
uniquely identify messages from the system
string Specifies the text string to uniquely identify the syslog
messages from the system
for example:
asa5520(config)#logging device-id ipaddress
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide