From ffbf5c8b595dc9b227616efff0b021f8a805acfa Mon Sep 17 00:00:00 2001 From: fukachan Date: Mon, 16 Jan 2006 10:24:27 +0000 Subject: several examples around on log, hooks, troubleshootings. --- fml/doc/en/tutorial/operations/log.sgml | 12 +- fml/doc/en/tutorial/operations/recipes.log.sgml | 156 ++++++++++++++++++++++++ 2 files changed, 167 insertions(+), 1 deletion(-) create mode 100644 fml/doc/en/tutorial/operations/recipes.log.sgml (limited to 'fml/doc/en/tutorial/operations') diff --git a/fml/doc/en/tutorial/operations/log.sgml b/fml/doc/en/tutorial/operations/log.sgml index fc0480c6..daf9e820 100644 --- a/fml/doc/en/tutorial/operations/log.sgml +++ b/fml/doc/en/tutorial/operations/log.sgml @@ -1,5 +1,5 @@ @@ -81,4 +81,14 @@ $log_computer_output_engine in config.cf file. + + + Recipes + + +§.op.log.recipes; + + + + diff --git a/fml/doc/en/tutorial/operations/recipes.log.sgml b/fml/doc/en/tutorial/operations/recipes.log.sgml new file mode 100644 index 00000000..758fad62 --- /dev/null +++ b/fml/doc/en/tutorial/operations/recipes.log.sgml @@ -0,0 +1,156 @@ + + + + + + + + + + +show fml error log of yesterday. + + + + + +daily.pl of &fml4; is not implemented yet. + + + +Currently use grep to parse the log file. + + + + + + + + + + +See old logs. + + + + + +&fml8; appends log messages continuously into the log file at +$ml_home_directory by default. All log messages exist in it. + + + +On the other hand, Unix log expires. +So you cannot trace too lod messages. + + + +Please tune parameters of expiration tools e.g. newsyslog which +program differs from unix variants to variants to save log messages in +at least 3 months. + + + + + + + + + + + +Centralize log messages. + + + + + +Unix uses syslog mechanism. +To redirect all messages to /var/log/messages, set the following: + +[/etc/syslog.conf] + +*.* /var/log/messages + + + + +Also, &fml8; can use syslog mechanism. + +[/var/spool/ml/elena/config.cf] + +log_type = syslog + + + + +To use these configuration, all messages are centralized to +/var/log/messages file. + + + + + + + + + + + +extract specific log messages in monitoring. + + + + + + +% tail -F /var/spool/ml/elena/log | grep 'PATTERN' + + + + + + + + + + + + +extrace the specific log messages with coping it. + + + + + + + +% tail -F /var/spool/ml/elena/log | grep 'PATTERN' | tee FILE + + + + + + + + + + + + +Expire old log files. + + + + + +Newsyslog mechanism provided by &fml4; is not implemented. + + + + + + + -- cgit v1.2.1