what to be done if nagios log server is almost full

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: what to be done if nagios log server is almost full

Post by eloyd »

Yes, I see that. I may not be very clear though:

Let's say I have three hosts, X, Y, and Z. X is very important and I need to keep its logs for 90 days. Y is sort of important and I need to keep its logs for 60 days. Z is not important, and I only want to keep its logs for 30 days. The numbers are just examples, not real world.

Is there a way to prune the data in this fashion, or would it have to be that everything stays for 90 days, which is the time required for the longest retention?
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
User avatar
lgroschen
Posts: 384
Joined: Wed Nov 27, 2013 1:17 pm

Re: what to be done if nagios log server is almost full

Post by lgroschen »

Hey Eric,

I do like the idea of this option and the other devs have said they have been tossing this around. So I added it as a feature request: task_id=4898


@hlyeung:
Did my first response to your original post help? Let me know if you need more information
/Luke
hlyeung
Posts: 14
Joined: Tue Dec 09, 2014 8:42 am

Re: what to be done if nagios log server is almost full

Post by hlyeung »

hi, thanks for your help.
i have moved the document to another location and then change DATA_DIR. However, after i moved, i cannot login to nagios log server. it said "The username specified does not existed". thanks.
hlyeung
Posts: 14
Joined: Tue Dec 09, 2014 8:42 am

Re: what to be done if nagios log server is almost full

Post by hlyeung »

after i waited a while, i can login.
thanks!
hlyeung
Posts: 14
Joined: Tue Dec 09, 2014 8:42 am

Re: what to be done if nagios log server is almost full

Post by hlyeung »

oh, seems after migrate database, it said


Waiting for Database Startup

It looks like your local elasticsearch service is starting.
Why am I getting this error?

Elasticsearch can take a little while to start up because of it's indexing. This may take a few seconds.

The page will refresh automatically after 5 seconds...

does this mean it is re-indexing all again?

thanks.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: what to be done if nagios log server is almost full

Post by scottwilkerson »

It is likely just re-shuffling the shards and verifying all their integrity
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked