👤
Home Man
Search
Today's Posts
Register

SUSE Linux is a major operating system. The developer rights are owned by Novell, Inc.

How do I make activities appear in SYSLOG file?

👤 Login to reply

 
Thread Tools Search this Thread
# 8  
Old 06-09-2015
I am not sure that it is possible to throw audit messages direct to syslog and I don't know which version of syslog-ng comes with SLES. The last you can check with the command rpm -qa | grep syslog-ng.

The first is more difficult. You will need to define in your syslog-ng configuration one more source and destination for logs.

Source is something like:
Code:
source s_audit {
  file ("/var/log/audit/audit.log"
    follow-freq(1)
    keep-timestamp(yes)
    flags(no-parse));
};

Destination is something like:
Code:
destination d_logrythm {
  syslog("your-server" 
  transport("tcp")
  port("514"));
};

And then tell syslog-ng, that messages from audit.log should go to logrythm:
Code:
log { source(s_audit); destination(d_logrythm); };

Of course, it is just an example. You have to adapt this configuration to your environment.
👤 Login to reply

« Previous Thread | Next Thread »
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
SYSLOGS - Where can I find FTP activities Harleyrci Solaris 1 03-08-2011 10:26 AM
Try to make a single line to syslog. iga3725 Shell Programming and Scripting 2 11-04-2010 11:40 AM
shell script for monitoring users activities rrd1986 Shell Programming and Scripting 3 08-27-2010 09:31 AM
makeutility: how to get the make-file name inside of the make-file? alex_5161 Programming 2 09-17-2009 05:57 PM
Script to log into unix box and do a set of activities cybersandex Shell Programming and Scripting 1 10-02-2008 03:42 AM
restricting users privileges and logging their activities sh_ksa Solaris 0 03-16-2007 06:38 AM
Need for loop to do 2 activities dsravan Shell Programming and Scripting 3 08-16-2006 02:59 AM
patterns from logs and activities rocketkids Shell Programming and Scripting 3 02-10-2004 05:45 AM
Tracking activities of Users using a particular login. jyotipg UNIX for Advanced & Expert Users 4 08-04-2003 11:43 AM
Keeping an eye on all user activities shauche UNIX for Advanced & Expert Users 5 05-19-2003 06:07 PM


All times are GMT -4. The time now is 07:59 PM.

Unix & Linux Forums Content Copyrightę1993-2018. All Rights Reserved.
×
UNIX.COM Login
Username:
Password:  
Show Password