cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
9055
Views
15
Helpful
5
Replies

How to check Log thought CLI of ESA for specific event.

bsrinu001
Level 1
Level 1

Hi Team, 

Please let us know how to check, Email log for a specific date/time/ for a user/ for a domain. In detail ( apart from grep and find event commands ) 

5 Replies 5

Libin Varghese
Cisco Employee
Cisco Employee

Hi,

grep is the only major tool available on the ESA in order to parse through mail_logs for specific date/time, domain, etc.

If you require additional options to parse the log file then you can opt to push the logs to a different server and use third-party tools or scripts for the same. However, such tools are not supported by Cisco.

Thank You!

Libin Varghese

could you please let us know commands on how to check logs for the particular day and time ?

Sure.

You could use the below command for example

grep "Feb 28 09:20" mail_logs

- Displays all mail_logs for search term Feb 28 09:20

grep "Feb 28 09.*domain.com" mail_logs

- Displays all search results for domain.com at the specified time. Do note the date and domain should find a match in a single line of the mail_logs

- Libin V

Please suggest on how to grep the mail logs for an address for a specific date .  

grep "Mar 31.*email@domain.com" mail_logs - for email address

grep "Mar 31.*domain.com" mail_logs - for domain or hostname

grep "Mar 31.*192.168.1.1" mail_logs - for IP address

You can separate multiple terms using ".*" as long as they are in a single line it should return a result.

- Libin V