sourCEntral - mobile manpages

pdf

OCTO_PARSER

NAME

octo_parser − Octopussy Parser program

SYNOPSIS

octo_parser <device>

DESCRIPTION

octo_parser is the program used by the Octopussy Project to parse Logs for each Device

FUNCTIONS

Exit()
Softly stops the parser (current file is fully parsed before exiting)

Reload()
Softly reloads the configuration of the parser (current file is fully parsed before reload)

Inotify_Watch($path)
Watches ’$path’ with inotify

Is_Valid_Regexp($message)
Checks if the regexp from message ’$message’ is valid

Is_Regexp_Assemble_Working($ra)
Checks if Regexp::Assemble will generate a regexp without failure

Init_Message_Alerts($service, $message, $device_alerts)
Inits Alerts for Message $message in Service $service

Init_Service_Message($s_conf, $m, $dev_alerts, $ra)
Inits Message $m from Service $s_conf−>{sid}

Init()
Inits Parser & launch UParser if needed

Write_Logfile($file, $logs, $compression)
Writes Known Logs ’$logs’ into Logfile ’$file’

Write_Unknown_Logfile($file, $logs)
Writes Unknown Logs ’$logs’ into Logfile ’$file’

Incoming_To_Unknown($incoming)
Moves Incoming file to Unknown file

Alert_Handler($msg, $line)
Handles Alert(s) for the Message $msg on line $line

Line_Handler($line, $serv, $msg, $known_msgs, $match)
Handles line $line for Service $serv & Message $msg

Service_Handler($serv, $y, $m, $d, $hour, $min, $file_new)
Handles Service $serv

Cache_MsgID_Stats()
Puts MsgID Statistics in cache

Cache_Taxonomy_Stats($service)
Puts Taxonomy Statistics in cache

Stats_Handler()
Handles Statistics for one minute

File_Handler($file)
Handles file $file

AUTHOR

Sebastien Thebert <octo DOT devel AT gmail DOT com>

SEE ALSO

octo_dispatcher, octo_extractor, octo_uparser, octo_reporter, octo_scheduler

pdf