SearchFAQMemberlist Log in
Reply to topic Page 1 of 1
Viewing daemon.log
Author Message
Post Viewing daemon.log 
Hi,

I have a solaris 10 Host with a windows client.

I want to check a previous failure for Nov 18 2011.

I searched for an old daemon.log.

Now this logs contains data for more than 10 days and it is huge. May more than 25000 lines.

Is there anyway i can get the logs for any particular date while cat the daemon.log

View user's profile Send private message
Post  
I hope you already have a daemon.raw file. In this case it is pretty easy to achieve:

nsr_render_log -S start_date -E end_date daemon.raw > output_file

like

nsr_render_log -S 12/02/20111 -E 12/03/2011 daemon.raw > output_file

BTW - i do this every day by running a task/cron job - this makes your life much easier than searching in a file of some hundred MB.

View user's profile Send private message
Post Viewing daemon.log 
On 13/12/2011, at 8:35 AM, bingo wrote:

I hope you already have a daemon.raw file. In this case it is pretty easy to achieve:

nsr_render_log -S start_date -E end_date daemon.raw > output_file

like

nsr_render_log -S 12/02/20111 -E 12/03/2011 daemon.raw > output_file

BTW - i do this every day by running a task/cron job - this makes your life much easier than searching in a file of some hundred MB.

Of course, you could also turn on runtime log rendering of the daemon log - if you're rendering it every day, why not render it simultaneously? Details at the link below:

http://nsrd.info/blog/2009/07/28/basics-–-realtime-rendered-logs-and-other-log-options/

(I've had a few people say they're worried about the performance or capacity implications of doing this - if the system is that borderline on capacity or performance, there's bigger issues at hand.)

Cheers,
Preston.


via RSS at http://listserv.temple.edu/cgi-bin/wa?RSS&L=NETWORKER

Post Viewing daemon.log 
[] >I hope you already have a daemon.raw file. In this case it is pretty easy to achieve:

[] > nsr_render_log -S start_date -E end_date daemon.raw > output_file

[] >like

[] > nsr_render_log -S 12/02/20111 -E 12/03/2011 daemon.raw > output_file

[] >BTW - i do this every day by running a task/cron job - this makes your life much easier than searching in a file of some hundred MB.

Even easier, modify the NSR log resource for daemon.raw, and set 'runtime rendered log' to '/nsr/logs/daemon.log'; NetWorker renders the logs for you, automatically, in real time.

tl

nsradmin -p nsrexecd


Command: Select [Next] Prev Edit Create Delete Options Quit
1 of 2 (on labhydra.backup)

type: NSR log;
administrator: root, "user=root,host=labhydra.backup";
owner: NetWorker;
maximum size MB: 2;
maximum versions: 10;
runtime rendered log: /nsr/logs/daemon.log;
name: daemon.raw;
log path: /nsr/logs/daemon.raw;


via RSS at http://listserv.temple.edu/cgi-bin/wa?RSS&L=NETWORKER

Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
  


Magic SEO URL for phpBB