This is the command octo_extractor_fields that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator
PROGRAM:
NAME
octo_extractor_fields - Octopussy Logs Extractor (by table fields) program
SYNOPSIS
octo_extractor --device <device> --service <service>
--table <table> --loglevel <loglevel> --taxonomy <taxonomy> --begin YYYYMMDDHHMM
--end YYYYMMDDHHMM
--fields <field1,field2,fieldn> [ --pid_param <string> ] [ --json <json_outputfile>
]
DESCRIPTION
octo_extractor_fields is the program used by the Octopussy Project to extract Logs (by
table fields)
FUNCTIONS
String_List($type, $any, $fct, @args)
Returns List of elements separated by ", " from one function and args
Help()
Prints Help
Progress($msg, $num, $nb_match)
Sets progress status
Get_Messages_To_Parse($services, $loglevel, $taxonomy, $table, $fields)
Returns list of Messages to parse
Get_TimePeriod_Files($devices, $services, $begin, $end)
Returns list of Files for Devices $devices, Services $services and Period $begin-$end
Print_Logs($devices, $services, $loglevel, $taxo, $begin, $end, $re_incl, $re_excl)
Prints Logs
my $correlation_key = 'id'; my @correlation_values = ('idpes', 'idcnx', 'cpcnx'); my
%correl = (); # Init correlation table foreach my $d (@logs) { foreach my $cv
(@correlation_values) { if ( NOT_NULL($d->{$cv}) && ($d->{$cv} ne "N/A") && ($d->{$cv} ne
"0")) { $correl{$d->{$correlation_key}}{$cv} = $d->{$cv}; } } } # Use correlation table to
fill NULL values foreach my $d (@logs) { foreach my $cv (@correlation_values) { if
(NULL($d->{$cv}) || ($d->{$cv} eq 'N/A') || ($d->{$cv} eq '0')) { $d->{$cv} =
$correl{$d->{$correlation_key}}{$cv}; } } }
End()
Ends Extraction
Use octo_extractor_fields online using onworks.net services