The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Device::Firewall::PaloAlto::Op::LogStatus - Logging status of a Palo Alto firewall.

VERSION

version 0.1.9

DESCRIPTION

This module represents the logging status of a Palo Alto firewall. It contains methods to retreive the sequence numbers and totals for each individual log type (traffic, threat, etc) sent by the firewall to Panorama or log collectors.

METHODS

seq_numbers

    my ($last_sent, $last_acked) = $fw->op->loggung_statis->seq_numbers( 'traffic' );

Returns a list of two sequence numbers for a log type. The first entry is the last sequence number sent, and the second entry is the last sequence number that has been acknowledged by the log collector.

If the firewall is not connected to a log collector, an empty list will be returned.

total

    my $total_logs = $fw->op->logging_status->total( 'threat' );

Returns an integer representing the total number of logs forwarded from the device for a specific type.

If the firewall is not connected to a log collector, a total of 0 is returned.

AUTHOR

Greg Foletta <greg@foletta.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2019 by Greg Foletta.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.