Pattern not matching
Closed this issue · 0 comments
GoogleCodeExporter commented
What steps will reproduce the problem?
1. sudo logwarn /var/log/apache2/error.log 'exit signal Segmentation fault'
2.
3.
What is the expected output? What do you see instead?
Expected are just the lines that contain the string "exit signal Segmentation
fault".
But I get all lines in the file.
What version of the product are you using? On what operating system?
logwarn version 1.0.11 (r115)
Raspberry Pi,
Processor: ARMv6-compatible processor rev 7 (v6l)
Distribution: Raspbian GNU/Linux 7 (wheezy)
Kernel version: Linux 3.10.32+ armv6l
Firmware: #648
Please provide any additional information below.
It looks that the file position is maintained, if I run it more often only the
new lines show up.
/var/lib/logwarn is accessible, the file is written there:
pi@raspberrypi /usr/local/bin $ more /var/lib/logwarn/*
# logwarn 1.0.11 state for "/var/log/apache2/error.log"
INODENUM="132765"
LINENUM="348"
POSITION="78345"
MATCHING="true"
Installation was without problems.
Original issue reported on code.google.com by gerhardy...@gmail.com
on 9 Mar 2014 at 1:52