ls -l gives you the last modification time of the log. date takes format modifiers that return the current time any way you want it.
So a comparison of the last modified time with the current time is possibe in a shell script.
Alternatively Perl offers a stat function and a time function, both of which use epoch time and so a comparison is easier, ie.
Hi,
I am new to perl. I want to write a perl script to monitor logs. Where i want to monitor exceptions logged or any kind of error strings. I have a dir(On Solaris) with multiple log file which keeps rolling to .gz file after some time in that same dir. These logs files size keeps on... (1 Reply)
Does anyone have a good script to move log files from a cron?
There are a lot of logs, about 100 or more and they are constantly
being written too. (7 Replies)
Hi,
I am trying to write a script which would go search and get the info from the logs based on yesterday timestamp and write yesterday logs in new file. The log file format is as follows:
""""""""""""""""""""""""""... (3 Replies)
Hi,
I have a script, running on some outside firwall server and it's log of success or failure is maintained in a file.
I want to write a script which ftp that server and reads that file and checks the logs and if failure , I will send mail notification.
Please let meknow if I am not... (1 Reply)
Hi
I do a very simple monitoring of our OpenLDAP (runs in cronjob and generate alerts if unsuccessfull)
$ ldapsearch -h hostname.domain -D "cn=monitor_user,ou=People,dc=organisation" -w "password" -b "dc=organisation" -x "(&(cn=monitor_user)(ou=People))" dn | grep -v version
dn:... (4 Replies)
Hi, I have a bash script and I am run it manually. It starts, but actually is doing nothing, probably because of a wrong input parameter.....Is there a place /directory/file where I can see a log for the script? (1 Reply)
is it possible to monitor log files that are on a windows server, from a linux/unix host?
i'm thinking that the directory that the files are located in on windows can be be mounted on the linux host, and then a script or tool can just monitor the log as though it were local?
any thing wrong... (3 Replies)
Hello friends, as they are? First of all sorry for my poor English. I tell them what is my problem. I have the following script, which is basically what makes error search for a pattern within a folder containing logs. The script works fine, the problem is that whenever I find a pattern of new... (2 Replies)
Hi,
I included a command set -o vi & sudo -l user -c script in profile.d and /etc/profile. unfortunately the script has some command that logs me out every time I try to login from all users including root user. this is happening from GUI. can I login to prompt directly? or is there an... (7 Replies)
Appreciate help for the below issue.
Im using below code.....I dont want to attach the logs when I ran the perl twice...I just want to take backup with today date and generate new logs...What I need to do for the below scirpt..............
1)if logs exist it should move the logs with extention... (1 Reply)
Discussion started by: Sanjeev G
1 Replies
LEARN ABOUT DEBIAN
tomoyo-auditd
TOMOYO-AUDITD(8) System Administration Utilities TOMOYO-AUDITD(8)NAME
tomoyo-auditd - access request log recording daemon for TOMOYO Linux
SYNOPSIS
tomoyo-auditd
tomoyo-auditd [remote_ip:remote_port]
DESCRIPTION
This program reads access request logs from the kernel and writes to the locations specified in the configuration file. By running this
program at startup, access request logs for either all domains or selected domains can be stored.
The format of the stored logs is similar to domain policy, so they can be used to help develop policy.
Configure this daemon in /etc/tomoyo/tools/auditd.conf. If an access request matches a rule, it will be written to the specified log file.
This can be used to split access request logs into multiple files. Only the first matching rule is used, so any single access request log
will be written to a maximum of one output file. If an access request log does not match any rules, it will be discarded.
Start this program from an appropriate stage during startup (e.g. /etc/rc.local).
OPTIONS
remote_ip:remote_port
Retrieve access request logs from a remote system via an agent, connecting to the specified IP address and port number.
BUGS
If you find any bugs, send an email to <tomoyo-users-en@lists.sourceforge.jp>.
AUTHORS
Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Main author.
Jamie Nguyen <jamie@tomoyolinux.co.uk>
Documentation and website.
SEE ALSO tomoyo-editpolicy-agent(8)
See <http://tomoyo.sourceforge.jp> for more information.
tomoyo-tools 2.5.0 2012-04-14 TOMOYO-AUDITD(8)