Works perfectly!  Thanks.  Sending the output to stderr hadn't
occurred to me.

Cheers!
TM

On Jun 30, 5:46 am, ddp <[email protected]> wrote:
> Oops, there isn't supposed to be a space between the 2 and the >.
>
>
>
> On Tue, Jun 30, 2009 at 8:45 AM, ddp<[email protected]> wrote:
> > 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- Hide quoted text -
>
> - Show quoted text -

Reply via email to