Provided by: octopussy_1.0.6-0ubuntu1_all bug

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

AUTHOR

       Sebastien Thebert <octo.devel@gmail.com>

SEE ALSO

       octo_dispatcher, octo_extractor, octo_parser, octo_uparser, octo_reporter, octo_scheduler