Hello,
it takes input from STDIN. I'll update the examples.
If there is demand i'll push an release to cpan/git.
I created an fatpacked (includes the files from lib/) version of
saftsumm and pushed it to:
https://markusbenning.de/tmp/saftsumm
I also added an --man option which outputs the manpage.
Markus
Am 2015-05-05 11:43, schrieb Birta Levente:
On 01/05/2015 17:45, Benning, Markus wrote:
Hi,
if you are willed to test my pflogsumm fork and to provide some sample
loglines
i'll implement postscreen statistics.
You can find the project at Github:
https://github.com/benningm/saftpresse
I modularized the pflogsumm code into seperate plugins:
https://github.com/benningm/saftpresse/tree/master/lib/Log/Saftpresse/Plugin
Also Input and Outputs.
There are 2 commands. The command saftpresse will be a new interface
to the code which
is configurable by configuration file. It is still work in progress.
The command saftsumm tries to resemble the pflogsumm commandline
interface.
Additional features already in it are TLS and GeoIP statistics, and
different outputs.
Currently pflogsumm, HTML, JSON and perl Dump.
My goal for saftpresse is to use it also for structured logging and to
implement
more than just postfix logging.
Can you provide more information how to install?
The following command do nothing:
#./saftsumm -d yesterday /var/log/maillog
What I do on Centos 6.6:
put the lib/Log to /usr/share/perl5/
The test.pl says:
Parameter module is not defined for Input FileTail! at
/usr/share/perl5/Log/Saftpresse/Slurp.pm line 62.
Thanks,
--
Markus Benning, https://markusbenning.de/