Unix/Linux Go Back    


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

How do I make activities appear in SYSLOG file?

SuSE


Closed    
 
Thread Tools Search this Thread Display Modes
    #8  
Old Unix and Linux 06-09-2015   -   Original Discussion by JDBA
agent.kgb's Unix or Linux Image
agent.kgb agent.kgb is offline
Registered User
 
Join Date: Feb 2015
Last Activity: 8 June 2018, 12:23 PM EDT
Location: basement, Lubyanka, Moscow
Posts: 344
Thanks: 8
Thanked 99 Times in 88 Posts
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.
Sponsored Links
Closed

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux 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
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 10:54 AM.