Eventlog file
Please let me know how should we can genrate eventlog file for an application?
|
I'm not exactly sure what you're asking. If you have the appropriate permissions you can put it in /var/log or else in the user's home folder or anywhere else you like.
jdk |
Hi jdk,
I dont have to do anything with application. Let say we had already done set-up in application and it is genrating a log file. But i want to generate a seperate eventlog file which takes records of only 'error' or 'warning' messages. Thanks |
Can you mention for which application you're askin about? Any particular application?
|
Arya g,
i have write a script which generated a evenlog file for an application. This is my over all task. And the main problem i am new to Unix. I am trying to get help from this forum. |
You can use incrontab for this.
|
Whizje,
i dont understand. Could you please clarify. Thanks |
The qn isn't entirely clear, but you basically have 2 options
1. if you have access to the src, you can amend it to do what you want 2. if you don't have src access, you'll need to filter the output and grep the error msgs eg Code:
tail -f file.log|grep 'error' >error.log |
With incrontab you can monitor a file for changes and if there is a change run a script like the above to look if there is a error.
|
There is NO need to install any "program" to monitor your script's error output. Because it won't work.
There is every need that you will have to code it in yourself, please see http://tldp.org/LDP/abs/html/ioredirintro.html for an introduction to "redirection". |
All times are GMT -5. The time now is 02:16 AM. |