LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-22-2018, 04:39 PM   #1
samgreco
LQ Newbie
 
Registered: Jun 2018
Posts: 2

Rep: Reputation: Disabled
Identify where a log file is coming from


I have been racking my brain, and searching like mad to try and figure this out. But I think I need help.

I have a new webserver running Centos 7 and WHM/cPanel. I keep getting warnings from CSF/LFD about some files that failed checksum. Of course they fail, since it's some sort of log file which shouldn't be in \usr\bin or \bin. But there they are. I am not sure what process is creating them.

Contents are as follows:
ram_avail:1060 ram_total:64090
stor_used:59474 stor_total:231027 proc_load:0.15
uptime:586027 top_cpu:exim:2.7
top_mem:agetty:0.0
total_proc:229

with the numbers changing constantly, hence the warnings.

How can I find what is creating these so I can change their path, or stop them completely?

Thanks in advance.
 
Old 06-22-2018, 08:58 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,257
Blog Entries: 28

Rep: Reputation: 6119Reputation: 6119Reputation: 6119Reputation: 6119Reputation: 6119Reputation: 6119Reputation: 6119Reputation: 6119Reputation: 6119Reputation: 6119Reputation: 6119
The classic location for log files is /var/log. Some logs are files directly in /var/log, others are located in its subdirectories.

SystemD's logging practice is different, and most distros have switched to SystemD as an init (and behind-the-scenes management and logging) system, but many distros have rsyslog installed, which pipes SystemD logs to /var/log. I'm hardly expert in SystemD, but here's a good tutorial on SystemD logs: https://www.digitalocean.com/communi...e-systemd-logs

If your hosting provider enables it, I'd suggest that to set up ssh access to your server so you can swoop in and use the command line to view the log files, as well as perform other maintenance functions.

Last edited by frankbell; 06-22-2018 at 09:01 PM.
 
Old 06-22-2018, 10:13 PM   #3
samgreco
LQ Newbie
 
Registered: Jun 2018
Posts: 2

Original Poster
Rep: Reputation: Disabled
Thanks. I'm just trying to figure out what is writing those files so I can change the location to the more standard /var/logs or something.
 
Old 06-23-2018, 04:41 PM   #4
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Quote:
Originally Posted by samgreco View Post
Thanks. I'm just trying to figure out what is writing those files so I can change the location to the more standard /var/logs or something.
You may wish to inquire of cPanel/WHM on that.
They got that all woven together in "their way"
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Kernel Log: Coming in 2.6.39 (Part 2) – Storage and file systems LXer Syndicated Linux News 0 04-27-2011 06:30 AM
LXer: Kernel Log: Coming in 2.6.38 (Part 2) – File systems LXer Syndicated Linux News 0 02-18-2011 04:30 PM
LXer: Kernel Log: Coming in 2.6.37 (Part 2) - File systems LXer Syndicated Linux News 0 12-09-2010 03:10 PM
LXer: Kernel Log: Coming in 2.6.34 (Part 2) - File Systems LXer Syndicated Linux News 0 04-23-2010 04:21 PM
LXer: Kernel Log: What's coming in 2.6.30 - File systems: New and revamped file syste LXer Syndicated Linux News 0 04-27-2009 11:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:36 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration