Find Information in Error Log or Transaction Log
amps-grep
amps-grep
is a utility used to search AMPS error logs and journal files. The utility supports both literal search terms and regular expressions. The utility is aware of the structure of AMPS error messages, and returns the full text of a matching error rather than simply the line that matches.
The utility can search for a literal match, or use regular expressions. The regular expression dialect supported is the full set of regular expressions supported by the Python re
module.
Options and Parameters
Option | Description |
| The file or files to search. |
| Show the version number of the program and exit. |
| Show the help message and exit. |
| Literal term to search. |
| Regular expression to search. |
| Include line numbers in results. |
| Include filename in results. |
| Do not include filename in results. |
| Use case-insensitive matching. |
amps-grep
reads from the standard input if no filenames are provided.
Usage
The following examples shows the output of amps-grep
. This example simply searches for any occurrence of the term pubber
, the name of a client, in the AMPS log.
Last updated