logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

octo_extractor_fields - Octopussy Logs Extractor (by table fields) program

Author

       Sebastien Thebert <octo.devel@gmail.com>

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=();#Initcorrelationtableforeachmy$d(@logs){foreachmy$cv(@correlation_values){if(NOT_NULL($d->{$cv})&&($d->{$cv}ne"N/A")&&($d->{$cv}ne"0")){$correl{$d->{$correlation_key}}{$cv}=$d->{$cv};}}}#UsecorrelationtabletofillNULLvaluesforeachmy$d(@logs){foreachmy$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

Name

       octo_extractor_fields - Octopussy Logs Extractor (by table fields) program

See Also

       octo_dispatcher, octo_extractor, octo_parser, octo_uparser, octo_reporter, octo_scheduler

perl v5.22.2                                       2016-05-04                           OCTO_EXTRACTOR_FIELDS(1)

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> ]

See Also