Cisco Cisco Email Security Appliance C160 テクニカルリファレンス
3-232
CLI Reference Guide for AsyncOS 10.0 for Cisco Email Security Appliances
Chapter 3 The Commands: Reference Examples
Logging and Alerts
Example: Search by envelope TO
mail.example.com> findevent
Please choose which type of search you want to perform:
1. Search by envelope FROM
2. Search by Message ID
3. Search by Subject
4. Search by envelope TO
[1]> 4
Enter the regular expression to search for.
[]> '
Currently configured logs:
Log Name Log Type Retrieval Interval
---------------------------------------------------------------------------------
1. mail_logs IronPort Text Mail Logs Manual Download None
Enter the number of the log you wish to use for message tracking.
[1]> 1
Please choose which set of logs to search:
1. All available log files
2. Select log files by date list
3. Current log file
[3]> 3
No matching message IDs were found
grep
Description
Searches for text in a log file.
Usage
Commit: This command does not require a ‘commit’.
Cluster Management: This command is restricted to machine mode. It is further restricted to the login
host (i.e., the specific machine you are logged onto). This command requires access to the local file
system.
host (i.e., the specific machine you are logged onto). This command requires access to the local file
system.
Batch Command: This command does not support a batch format.
The
grep
command can be used to search for text strings within logs. Use the following syntax when
you run the
grep
command:
Note
You must enter either
-e regex
or
regex
to return results.
grep [-C count] [-e regex] [-i] [-p] [-t] [regex] log_name