When you define a Text File Reading and Monitoring job, you can specify the character encoding of the text file to be monitored. For example, you can monitor a text file that contains data encoded in ISO-8859-1 (ISO Latin Alphabet No. 1 or ISO-LATIN-1).
To monitor a file with data encoded in a non-ASCII character set, add the ENCODING statement in the job definition.
Example: Monitor a Text File Encoded in ISO-8859-1
The following job monitors a text file that contains data encoded in ISO-8859-1 (ISO Latin Alphabet No. 1 or ISO-LATIN-1). The job completes successfully if the specified string is found.
AGENT MONAGT TEXTFILE /export/home/logs/transactions.log TEXTSTRING 'ERROR MESSAGE' SEARCHRANGE LINE FROM(1) TO(50) ENCODING ISO-8859-1
|
Copyright © 2013 CA Technologies.
All rights reserved.
|
|