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/include/chapters.ent | 13 +- fml/doc/en/tutorial/internals/hook.sgml | 14 ++- fml/doc/en/tutorial/operations/log.sgml | 12 +- fml/doc/en/tutorial/operations/recipes.log.sgml | 156 ++++++++++++++++++++++++ 4 files changed, 188 insertions(+), 7 deletions(-) create mode 100644 fml/doc/en/tutorial/operations/recipes.log.sgml (limited to 'fml/doc/en/tutorial') diff --git a/fml/doc/en/tutorial/include/chapters.ent b/fml/doc/en/tutorial/include/chapters.ent index b809d542..574a8e58 100644 --- a/fml/doc/en/tutorial/include/chapters.ent +++ b/fml/doc/en/tutorial/include/chapters.ent @@ -1,5 +1,5 @@ @@ -127,13 +127,11 @@ - - - - + + @@ -192,6 +190,7 @@ + @@ -217,6 +216,10 @@ + + + + diff --git a/fml/doc/en/tutorial/internals/hook.sgml b/fml/doc/en/tutorial/internals/hook.sgml index 206e4d5c..56c4f75d 100644 --- a/fml/doc/en/tutorial/internals/hook.sgml +++ b/fml/doc/en/tutorial/internals/hook.sgml @@ -1,5 +1,5 @@ @@ -122,4 +122,16 @@ The naming convension may differ from this convension. + + + Recipes + + + +§.hook.recipes; + + + + + 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