LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 03-25-2011, 01:22 PM   #1
trey85stang
Senior Member
 
Registered: Sep 2003
Posts: 1,091

Rep: Reputation: 41
auditd/syslog help needed. Too many logs.


Hey all,

os: sles 11 sp1 with all patches/updates installed.

Im looking to monitor and log (to syslog) user events. Im not interested in system calls, just looking to know if a user is reading writing executing certain files/executable.

The problem is, it seem auditd is good for all or nothing when it comes to writing to a log and I am wondering if I am missing something to the config?

I have syslog enabled with audispd and it works fine.

auditd.conf
Code:
log_file = /var/log/audit/audit.log
log_format = RAW
log_group = root
priority_boost = 4
flush = INCREMENTAL
freq = 20
num_logs = 4
disp_qos = lossy
dispatcher = /sbin/audispd
name_format = NONE
##name = mydomain
max_log_file = 5 
max_log_file_action = ROTATE
space_left = 75
space_left_action = SYSLOG
action_mail_acct = root
admin_space_left = 50
admin_space_left_action = SUSPEND
disk_full_action = SUSPEND
disk_error_action = SUSPEND
##tcp_listen_port = 
tcp_listen_queue = 5
##tcp_client_ports = 1024-65535
tcp_client_max_idle = 0
audit.rules
Code:
# First rule - delete all
-D

# Increase the buffers to survive stress events.
# Make this bigger for busy systems
-b 8192
-f 1
-e 1

-w /etc/passwd
The above logs every single sys call and anything that touchs passwd. Once again, I do not want to see the syscalls.

Is there a way to set it so syscalls are disabled? so Im not flooding the network with logs being relayed to the log server.
 
Old 03-25-2011, 01:43 PM   #2
trey85stang
Senior Member
 
Registered: Sep 2003
Posts: 1,091

Original Poster
Rep: Reputation: 41
well, heck. A little more googling and I got it.

auditctl -a exclude,always -F msgtype=SYSCALL
 
Old 02-07-2022, 09:27 PM   #3
linuxmindbeginner
LQ Newbie
 
Registered: Feb 2022
Posts: 1

Rep: Reputation: 0
Lightbulb

Can you exclude by any other "property" other that msgtype? For example proctitle or cwd?

Thanks!
 
Old 02-15-2022, 06:54 PM   #4
zeebra
Senior Member
 
Registered: Dec 2011
Distribution: Slackware
Posts: 1,830
Blog Entries: 17

Rep: Reputation: 638Reputation: 638Reputation: 638Reputation: 638Reputation: 638Reputation: 638
Quote:
Originally Posted by linuxmindbeginner View Post
Can you exclude by any other "property" other that msgtype? For example proctitle or cwd?

Thanks!
There are thousands of ways to deal with audit. You can basically get audit to log/ignore (filter) and make logtrees however you want, but it's complicated so you need to study how it works.

Last edited by zeebra; 02-15-2022 at 06:56 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Syslog-ng and named logs talat Linux - Server 2 05-14-2009 10:19 AM
tracing application logs in syslog shifter Programming 2 05-15-2007 03:38 AM
syslog-ng doen't generating logs emailssent Linux - Newbie 3 03-09-2005 05:44 AM
Guarddog logs in syslog short101 Linux - Security 3 01-06-2005 01:31 AM
Getting logs from a remote syslog ganninu Linux - Newbie 4 09-10-2003 09:05 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 06:54 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration