Hi Derek,

You just need to send stderr to the file you want. For example:

zcat /var/ossec/logs/alerts/2009/Feb/*.gz |
./src/monitord/ossec-reportd -n "Month Summary" 2>/tmp/myresult.txt

Thanks,

--
Daniel B. Cid
dcid ( at ) ossec.net

On Mon, Feb 16, 2009 at 8:20 AM, Derek J. Morris
<[email protected]> wrote:
>
> My current work around is a script I wrote then added it to my cron jobs. I 
> then
> get the output sent to me in email form when the cron job runs.
>
> simple script ossec_summary.sc  :
>
> cd /var/ossec/
>
> zcat /var/ossec/logs/alerts/2009/Feb/*.gz | ./src/monitord/ossec-reportd -n
> "Month Summary"
>
> Nothing fancy but functional.
>
> -Derek
>
>>
>> Hi Derek. Did you get an answer to this? I too am having trouble
>> outputting it to anything other than the screen. Roch
>>
>> On 2/13/09, Derek J. Morris <[email protected]> wrote:
>>>
>>> How do i get this to output to a file to be read later?
>>>
>>>
>>> Ex:
>>>
>>> zcat /var/ossec/logs/alerts/2009/Feb/*.gz | ./src/monitord/ossec-reportd -n
>>> "Month Summary"
>>>
>>
>> --
>> Sent from my mobile device
>>
>
>

Reply via email to