It looks like reportd writes to stderr. Redirect fd 2. For example: ../../bin/ossec-reportd -n "Test report" -f group authentication_failed 2 > report.txt
On Mon, Jun 29, 2009 at 3:44 PM, tm<[email protected]> wrote: > > How do you pipe or redirect output from ossec-reportd? > > For example: > > ../../bin/ossec-reportd -n "Test report" -f group > authentication_failed < alerts.log | sendmail some...@somewhere > > doesn't work. > > Similarly: > > ../../bin/ossec-reportd -n "Test report" -f group > authentication_failed < alerts.log > report.txt > > doesn't work either. > > Trevor >
