Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
My DNS server's logs are the text files that growing too fast and one of them is already over 30 MB in size. I didn't set up the max. file sizes. I would prefer just to manually delete the lines inside the files. Let's say, my log contains entries for the last 10 days.The entries that refer to 9 days I would manually delete and leave there just the last day's entries. Is it something that's not gonna cause any damage to anything, I hope???
My DNS server's logs are the text files that growing too fast and one of them is already over 30 MB in size.
Are these all legitimate entries? Meaning nothing that would require adjusting / filtering / blocking in the configuration file?
Quote:
Originally Posted by papakota
I didn't set up the max. file sizes.
Why not?
Quote:
Originally Posted by papakota
I would prefer just to manually delete the lines inside the files. Let's say, my log contains entries for the last 10 days.The entries that refer to 9 days I would manually delete and leave there just the last day's entries. Is it something that's not gonna cause any damage to anything, I hope???
You probably want to use logrotate instead. 'man logrotate.conf' for more nfo.
Thanks for your reply! Definitely, I would have to learn more about this topic and it requires a separate thread to discuss. But right now I won't get into it. I'm assuming that it's safe to delete manually since you haven't said otherwise.
Thanks for your reply! Definitely, I would have to learn more about this topic and it requires a separate thread to discuss. But right now I won't get into it. I'm assuming that it's safe to delete manually since you haven't said otherwise.
When you modify a file at the same time some other process modifies it, you risk corrupting the data in the file. Which, admittedly, is not such a big deal with a log file. If you want to avoid that, though, perhaps you should stop your DNS server before deleting lines from the log.
I don't want to sound patronizing, but here are a few other considerations. If you don't understand a tool like logrotate, you shouldn't operate a DNS server. Most distros come with logrotate installed and configured by default, so that you should investigate how such a large file could be created. If your DNS server generates that output volume in a few days, something must be misconfigured; have a look at those messages before you delete them.
If you don't want to sound, then don't! As simple as that... That's first. No need for personal attacks. If you wanna help, then help. If you don't... Don't bother replying.
Second... I did stop BIND before manually deleting part of its log files content.
Sure, I will have to configure log management sooner rather than later... That's true...
No need to play games here. We're not in kindergarten. I've read because you'd written, not the other way around.
Forum exists so people who come here would read. That's what I do here. But forum doesn't exist to give you a way to offend people you don't know.
If you don't want to sound, then don't! As simple as that... That's first. No need for personal attacks. If you wanna help, then help. If you don't... Don't bother replying.
Second... I did stop BIND before manually deleting part of its log files content.
Sure, I will have to configure log management sooner rather than later... That's true...
Quote:
Originally Posted by papakota
No need to play games here. We're not in kindergarten. I've read because you'd written, not the other way around.
Forum exists so people who come here would read. That's what I do here. But forum doesn't exist to give you a way to offend people you don't know.
you are overreacting. nobody's offending or attacking.
both contributors here are trying to help you, i think a "thank you" is in order instead of complaining about their phrasing.
'nuff said.
Who cares what you think? How does this concern you? "If you don't understand a tool like logrotate, you shouldn't operate a DNS server."
Who wrote that? My mom?
Who is he and who are you to try to teach me manners or patronize me. I simply asked a purely technical question here. Period.
All the other B.S. came after someone here said something PERSONAL. Though it might be his legal right to be rude and attacking, then I also have a right to express how I see it. Isn't it fair? Call it subjective... Fine... I'll call you an idiot and you have a right not to take the offense. Fine by me!
Who cares what you think? How does this concern you?
it concerns me because i'm a member of this forum just like everybody else who contributed to this thread.
Quote:
"If you don't understand a tool like logrotate, you shouldn't operate a DNS server."
Who wrote that? My mom?
a wise mom.
seriously, i think in a year or so (if you manage to keep your server running for that long) you will turn back to this moment and think "i should have listened to my mom, then".
Quote:
All the other B.S. came after someone here said something PERSONAL.
this is why i said you're overreacting - you are taking it personally, and in the end you're just reacting to your own projections.
Quote:
Though it might be his legal right to be rude and attacking
it isn't his right by the forum rules. and he wasn't.
you, on the other hand, are sailing close to the edge:
Who cares what you think? How does this concern you!
You shouldn't think that this forum thread is only for you. It is for everybody who comes to Linuxquestions, including people who might have similar problems. If my remark about not operating a DNS server (or any server) without having logrotate enabled doesn't apply to you, why don't you just ignore it?
Linuxquestions.org is a place where you can ask any Linux question and get a friendly answer. This is our goal. We also have rules that clearly say what is not acceptable, including personal attacks, calling names etc. Please take that into account before posting.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.