Syslog not having all su logs


 
Thread Tools Search this Thread
Operating Systems Solaris Syslog not having all su logs
# 1  
Old 10-06-2010
Syslog not having all su logs

Hi gurus and gurettes (?)

Alright, really quickly, VCS-1 is executing some monitoring scripts every minute on local zones and I want to know if there is a way for me to remove the following :

Month X XX:XX:XX RaNdOmSeRvErNaMe su: [ID 366847 auth.notice] 'su root' succeeded for root on /dev/???

A quick and dirty answer would be "not to monitor all your ressources every minute" or "use the built-in tool from VCS-1". My answer is: I can't. Why? This is not the reson why I opened this thread.

So, in syslog.conf, do I have a way of removing the su logs for user root? Not from /vard/adm/sulogs tho ...

Thank you!
# 2  
Old 10-12-2010
Having no luck so far.

I could redirect the whole sudo logs (via Defaults settings in sudoers itself) but that would make it harder if we ever need to troubleshoot user inputable mistakes.

Let's modify the question:
Can we put filters on errors by devices?
Like "please ignore /dev/??? for sudo logs"?
# 3  
Old 10-12-2010
The man page for syslog.conf doesn't have a way to avoid versions of a facility message.
Other than rewriting a system component - I do not know how to change the behavior.
You are viewing the output of auth facility. Other than changing su to use separate facilities (you can have local or user defined syslog.conf facilities) and recode su using the new facility I cannot think of an answer.

You can redirect output to a door or a temp regular file, write a daemon that parses things out, then write those parsed goodies to a logfile of your choice.
# 4  
Old 10-12-2010
Hey Jim,

That's a solution I wanted to avoid ...

I'll put that in the to-do when-the-to-do-list-is-done list and just leave with logs for a while then.

Ty for your answer, it's appreciated.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Syslog-ng not working not collecting logs on rhel

Hi, I need help on syslog-ng on RHEL 7.2. It is working as expected. As per configuration, it is supposed to create authlog, messages and xymessages daily in respective folder of date. But I can see only messages file and that is also not updating well. # ps -ef | grep -i syslog root 22954... (1 Reply)
Discussion started by: solaris_1977
1 Replies

2. Shell Programming and Scripting

If I ran perl script again,old logs should move with today date and new logs should generate.

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

3. Linux

How to push Tomcat logs to remote syslog server?

I found a script for automatically push tomcat logs to syslog server which is locate in same server. How do I change it to push logs to remote server? log4j.rootLogger=INFO, WARN, console, file, SYSLOG log4j.appender.file=org.apache.log4j.RollingFileAppender log4j.appender.file.append=true... (2 Replies)
Discussion started by: heshandh
2 Replies

4. UNIX Desktop Questions & Answers

regarding logs

Hi , I am running an application on my windows and it logs are generated at /var/logs and for this i have to go this location and then do tail -f , Is there any command you can advise me so that when I execute this command at this location that logs get displayed fully and as the application... (3 Replies)
Discussion started by: KAREENA18
3 Replies

5. Red Hat

Sending all apache logs to Syslog Server

Hi All, I need to send all apache logs to local syslog and then to syslog server (STRM – Security Threat response manager). I follow these steps:- vi /etc/httpd/conf/httpd.conf Added these lines :- ErrorLog syslog:local1 LogLevel notice Then in syslog.conf:- local1.crit... (3 Replies)
Discussion started by: sidhurana
3 Replies

6. Linux

sending messages from auditd logs to syslog server

I have the auditd running and I need to send the audit logs to a remote syslog server. Anyideas on how to do that? (1 Reply)
Discussion started by: jmathenge
1 Replies

7. Shell Programming and Scripting

Grep yesterday logs from weblogic logs

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)
Discussion started by: harish.parker
3 Replies

8. UNIX for Advanced & Expert Users

logs

Hy, I have a question I have a directory in a unix server, Some of my files have a diffrent access time, from the time i accessed them last, I think some one has copied it,it's not an important file,but none the less,it is my file,It mistakenly had a 777 permission( yes ,I know it is a noob's... (1 Reply)
Discussion started by: lordmod
1 Replies

9. Shell Programming and Scripting

Logs

Hey Guys, i am new into shell programming and i have to do one script which have to record all the commands entered by a specific user. Example of that, i have a system running on unix, several users are using this system, i have to create like a databse which will record every user entered that... (5 Replies)
Discussion started by: charbel
5 Replies

10. UNIX for Dummies Questions & Answers

logs

can i include this command into my crontab file > /var/adm/wtmp to clear the contents on a regular basis ? what about file permissions ? (6 Replies)
Discussion started by: cubicle^dweller
6 Replies
Login or Register to Ask a Question