02-18-2016
Well i would suspect there are no errors or warnings to log
You can check the log file with fuser or lsof and determine which process is keeping the file open.
Other then that, you will have to login to your app/db/system and determine what is going on and how it is configured to log.
There could be various reasons such as :
Missing disk space.
Files removed with rm while process is attached (you will not see the file anymore, but the process is still writing in it and taking up space until you restart it).
Inode exhaustion (rare on modern filesystems, limits are quite high).
Wrong files/log cleanup (badly configured logrotate and such).
etc.
What is 'expected log update?'. Can you elaborate on this ?
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I have a log file which is continuously added to, called log.file. I'd like to
monitor this file, and when certain lines are found, update some totals in
another file. I've played around with tail -f, grep, and awk, but can't seem
to hit the right note, so to speak.
The lines I'm... (0 Replies)
Discussion started by: nortonloaf
0 Replies
2. Shell Programming and Scripting
Hi All,
I am new to scripting.
my requirement is ,
I want to know whether the file(i.e., log file) is updating or not.
It should search for every 15 min. If it is not updating means it needs to send out a automatic mail.
can you please help me in this. (2 Replies)
Discussion started by: raj333
2 Replies
3. Shell Programming and Scripting
Hello,
I read and search through this wonderful forum and tried different approaches but it seems I lack some knowledge and neurones ^^
Here is what I'm trying to achieve :
file1:
test filea 3495;
test fileb 4578;
test filec 7689;
test filey 9978;
test filez 12300;
file2:
test filea... (11 Replies)
Discussion started by: mecano
11 Replies
4. UNIX for Advanced & Expert Users
can someone please help me figure how i can get maillog to start updating again? it just all of a sudden stopped. and postfix isn't writing to it anymore. I'm running a Ubuntu box 8.04
thanks (2 Replies)
Discussion started by: SkySmart
2 Replies
5. Red Hat
Hello all,
I recently deleted some lines from the messages and secure files, in /var/log and now they are not keeping a log anymore. The last update shows the date of when I deleted the lines.
I had to delete some failed login attempts to stop denyhosts from blocking the ips (probably not the... (3 Replies)
Discussion started by: z1dane
3 Replies
6. UNIX for Dummies Questions & Answers
i've got a database setup that references user inputs to see if they are already inputted. What I am wanting to do is allow the user to update the database by typing
"update: name" where name is someone already in the database.
echo "Enter your name."
read NAME
location=`find . -name... (2 Replies)
Discussion started by: fufaso
2 Replies
7. Shell Programming and Scripting
Hi,
I have a process which outputs to a log.
Below is the code snippet:
process &> $LOGFILE&
The log file keeps on updating whenever a transaction is processed.
The log file has a time stamp added so every time I kill the process and start the process a new log file is... (4 Replies)
Discussion started by: rajkumarme_1
4 Replies
8. Shell Programming and Scripting
Hi Forum,
Good Day!
I have created an empty html file wtih permissoin 777
created shell script(with permission 777) , code is below.
#=======================start==============
. /data09/oracle/apps_st/appl/D_oraapp095.env
rm -rf /home/mnp/Test_log.txt
echo... (1 Reply)
Discussion started by: kartheekbk
1 Replies
9. Ubuntu
Just installed the latest version on my hp stream, was tired of windows. Of the few times I've used Linux, this is the first time it won't update. Im connected to the net the updater recognizes that the OS needs 21 updates. But it won't download/install the updates. It also won't load the... (1 Reply)
Discussion started by: DabblingMadman
1 Replies
LEARN ABOUT FREEBSD
pmc_flush_logfile
PMC_CONFIGURE_LOGFILE(3) BSD Library Functions Manual PMC_CONFIGURE_LOGFILE(3)
NAME
pmc_configure_logfile, pmc_flush_logfile, pmc_writelog, pmc_close_logfile -- log file management
LIBRARY
Performance Counters Library (libpmc, -lpmc)
SYNOPSIS
#include <pmc.h>
int
pmc_configure_logfile(int fd);
int
pmc_flush_logfile(void);
int
pmc_writelog(uint32_t userdata);
int
pmc_close_logfile(void);
DESCRIPTION
The functions manage logging of hwpmc(4) events.
Function pmc_configure_logfile() is used to turn on and turn off logging. If argument fd is a valid file handle returned by a prior call to
open(2) or socket(2) then performance events will be logged to the file corresponding to the specified handle. If the value of argument fd
is -1 then logging will be stopped after any pending data is flushed.
Function pmc_flush_logfile() will force all log data queued inside the hwpmc(4) driver to be written out.
Function pmc_writelog() will append a log entry containing the value of argument userdata to the log file.
Function pmc_close_logfile() will flush all pending log data and close hwpmc(4)'s side of the stream.
RETURN VALUES
Upon successful completion, the value 0 is returned; otherwise the value -1 is returned and the global variable errno is set to indicate the
error.
ERRORS
A call to pmc_configure_logfile() may fail with the following errors:
[EAGAIN] The hwpmc(4) driver was not able to create a helper process due to system limits being reached.
[EBUSY] Function pmc_configure_logfile() was called with a log file already configured.
[EINVAL] Function pmc_configure_logfile() was called with an argument of -1 without a log file being previously configured.
[ENOMEM] The system encountered a memory shortage when servicing this request.
A call to pmc_flush_logfile() may fail with the following errors:
[EINVAL] Function pmc_flush_logfile() was called without a log file being previously configured.
A call to pmc_writelog() may fail with the following errors:
[EINVAL] Function pmc_writelog() was called without a log file being previously configured.
[ENOMEM] The system encountered a memory shortage when servicing this request.
SEE ALSO
pmc(3), hwpmc(4)
BSD
November 24, 2007 BSD