Results 1 to 1 of 1
Hello,
I am using sysklogd-1.4.1-26_EL.i386.rpm with Fedora Core 4.
Rolling of the last message is not working for me correctly.
Here is the wrong output that I am getting:
I ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 03-16-2007 #1Just Joined!
- Join Date
- Mar 2007
- Posts
- 2
sysklogd - Problems with rolling of last message
Hello,
I am using sysklogd-1.4.1-26_EL.i386.rpm with Fedora Core 4.
Rolling of the last message is not working for me correctly.
Here is the wrong output that I am getting:
I have 2 programs p7.c and p10.c
[rnaik@mirahp2 sys]$ cat p7.c
#include <syslog.h>
#include <unistd.h>
int main(int argc, char *argv[])
{
int i = 0;
while(1)
{
syslog(LOG_LOCAL5|LOG_ERR, "%s --xxxxx-- %d\n", argv[0], i);
i++;
}
}
------------------------------------
[rnaik@mirahp2 sys]$ cat p10.c
#include <syslog.h>
#include <stdio.h>
#include <unistd.h>
int main(int argc, char *argv[])
{
int i = 0;
while(1)
{
syslog(LOG_LOCAL0|LOG_ERR, "xxxxx\n");
i++;
}
}
p7 logs a different message each time and p10 logs a unique message.
This is what I get in the /var/log/messages :-
Mar 15 22:56:44 miram450-2 p7: ./p7 --xxxxx-- 333943
Mar 15 22:56:44 miram450-2 last message repeated 5501 times
--
Mar 15 22:56:44 miram450-2 p7: ./p7 --xxxxx-- 334043
Mar 15 22:56:44 miram450-2 last message repeated 64 times
--
Mar 15 22:56:44 miram450-2 p7: ./p7 --xxxxx-- 334180
Mar 15 22:56:44 miram450-2 last message repeated 446 times
--
Mar 15 22:56:44 miram450-2 p7: ./p7 --xxxxx-- 334522
Mar 15 22:56:44 miram450-2 last message repeated 1819 times
--
Mar 15 22:56:44 miram450-2 p10: xxxxx
Mar 15 22:56:44 miram450-2 last message repeated 8 times
--
Mar 15 22:56:44 miram450-2 p7: ./p7 --xxxxx-- 334559
Mar 15 22:56:44 miram450-2 last message repeated 288 times
--
Mar 15 22:56:44 miram450-2 p10: xxxxx
Mar 15 22:56:44 miram450-2 last message repeated 189 times
--
Mar 15 22:56:44 miram450-2 p10: xxxxx
Mar 15 22:56:44 miram450-2 last message repeated 146 times
--
-----------------------------------------------------
"last message repeated " message should not be preceeded with message logged by p7 as the messages from p7 are diffrent.
It should always be with p10.
Any help would be highly appreciated.
Thanks,
Piyush


Reply With Quote
