Sponsored Content
Full Discussion: UNIX - AIX - Syslog messages
Operating Systems AIX UNIX - AIX - Syslog messages Post 302948148 by agent.kgb on Friday 26th of June 2015 07:04:56 AM
Old 06-26-2015
AIX has at least 3 logging facilities and 1 auditing facility.

Logging facilities are:
- syslog
- errlog
- alog

All 3 facilities make a little different things. Through alog you can see e.g. boot-time or console messages. Errlog logs mostly hardware-related messages. Syslog is a standard UNIX logging mechanism.

If you do a security assessment, the usual question is - what must be logged in your branch and in your country? There are a lot of different regulations for different branches (financial, healthcare, stock exchanges, human resources, and so on) and in different countries - rules for an US-based company are not the same as rules for an European- or a Chinese company.

All logging and auditing facilities must be configured according to your local requirements. It is not where a sysadmin has right to say something. It is your local authorities who say the word.

After you have your requirements it is easier to decide what should be written in a configuration file to receive the information you require on the central logging server. If you can't analyze the received information, because you've never seen UNIX logs, you have to hire some experienced guy or can try to post example log entries (if they are not tooo sensitive for your organization) here and forum members will try to explain the logs to you.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

system messages log (Sun and AIX)

Hello, I need a few explanation about the log files for system messages: /var/adm/messages and /var/log/syslog. As /var/adm/messages is empty on my machine, i need help. First, i would like to know what the difference between these 2 files is? Do they contain different kinds of system... (3 Replies)
Discussion started by: VeroL
3 Replies

2. AIX

AIX 5.2 Syslog : Help needed

Hi all, I am trying to get the authentication logs of FTP,Telnet,SSH,inetd from the syslog file. But my output for every type of authentications - success & failure keep differing everytime i view them. The output does not show the priority code (emerg, or 0, in any case). How do I get the... (0 Replies)
Discussion started by: kamadana
0 Replies

3. Solaris

which is the best unix? solaris? aix ? hp-unix?

which is the best unix? solaris? aix ? hp-unix? I want to study unix system ? Anyone tell me which is the best? (2 Replies)
Discussion started by: mac2008
2 Replies

4. AIX

AIX auto delete old mail messages

We have had an issue where the mail file filled up. Is there a setting in sendmail.cf to automatically remove old emails? Say after 14 days. If not is there any way automatically to delete older mail files?? (1 Reply)
Discussion started by: daveisme
1 Replies

5. AIX

AIX Syslog login/logout User

Hi, i'm trying to configure /etc/syslog.conf for log user access. In debian i add: auth,authpriv.* @serverName I don't know the correct Aix syntax for syslog :( My @serverName get the log successfully.. I need to log correct/incorrect login attempts. Thanks (5 Replies)
Discussion started by: hankBuck
5 Replies

6. AIX

Forwarding AIX syslog/errorlog to remote SQL DB

Due to a project I'm currently tasked with I'm spending my time trying to find a way to forward the syslog to a remote, in this case Red Hat, server and squeezing it into a SQL DB. Rsyslog is doing this job quite nicely for most of our test-servers, but I couldn't find any reliable information on... (1 Reply)
Discussion started by: Skleindl
1 Replies

7. AIX

Get Next month in AIX from curent date in unix AIX

How could we derive teh Next month in MON-RR format from current date ie sysdate in UNI AIX sheel script.I coould get a command but i supports only inLinux susse andnotin AIX. I need for Unix AIX.Pls Help. Regards Shiv (2 Replies)
Discussion started by: SHIV75
2 Replies

8. AIX

I see some errors in syslog files in AIX. can these be ignored ?

Hello, Could you please check the below errors. I found these errors in AIX LPAR syslogs. auth|security:err|error sshd error: Could not load host key: /etc/ssh/ssh_host_ecdsa_key daemon:err|error syslog: slp: 0660-059 Impossible to get local interface for distant address 10.x.x.x. errno... (2 Replies)
Discussion started by: Kumar7997
2 Replies

9. AIX

AIX Syslog where the hostname sit

Dear all experts, I would like to know where can I find the hostname located as when I receive the syslog, I can only see as below : (showing in localhost instead of the hostname) Feb 6 15:31:31 localhost syslog:info syslogd: restart Feb 6 15:31:50 localhost syslog:info syslogd: restart Feb... (13 Replies)
Discussion started by: kwliew999
13 Replies

10. AIX

Cannot send syslog event from AIX 6.1 to RHEL Syslog server

Hi everyone, I am trying to configure AIX 6.1 using syslogd to send syslog event to syslog server configured on RHEL. However, RHEL never receives the events. I have tried to redirect the syslog event on AIX to a local file and successful. Only forwarding to remote server fails. Firewall... (10 Replies)
Discussion started by: michael_hoang
10 Replies
Paranoid::Log(3pm)					User Contributed Perl Documentation					Paranoid::Log(3pm)

NAME
Paranoid::Log - Log Functions VERSION
$Id: Log.pm,v 0.14 2010/06/03 19:03:32 acorliss Exp $ SYNOPSIS
use Paranoid::Log; clearLogDist(); initLogDist(); $rv = enableFacility($name, $facility, $logLevel, $scope, @args); $rv = disableFacility($name); $rv = plog($severity, $message); $rv = psyslog($severity, $message); # The following functions are not exported by default clearLogDist(); initLogDist(); $timeStamp = ptimestamp(); DESCRIPTION
This module provides a unified interface and distribution for multiple logging mediums. By calling one function (plog) you can have that message stored in multiple mediums depending on what you've enabled at what severities. For instance, you could have a critical message not only automatically logged in a log file and syslog, but it could also generate an e-mail. You can also use your own logging facility modules as long as you adhere to the expected API (detailed below). Just pass the name of the module as the facility in enableFacility. SYMBOL TAG SETS
By default, only the following are exported: enableFacility disableFacility plog psyslog You can get everything using :all, including: clearLogDist initLogDist ptimestamp LOGGING FACILITIES
Each logging facility is implemented as separate module consisting of non-exported functions with conform to a a consistent API. Each facility module must have the following functions: Function Description ------------------------------------------------------ init Called when module first loaded remove Removes a named instance of the facility log Logs the passed message dump Dumps internal information The init function is only called once -- the first time the module is used and accessed. The remove function allows you to remove a specific named instance of the logging facility from use. The log function is used to actually log an entry into the facility. The dump function is used to dump pertinent internal data on the requested named instance. This is primarily intended for use with facilities like the log buffer, in which case it dumps the contents of the named buffer. Other uses for this is left to the developer of individual facility modules. SUBROUTINES
/METHODS clearLogDist clearLogDist(); This empties all enabled loggers from the distribution processor. It doesn't erase any named logging facilities already put into place, simply takes out of the distribution system so no further log entries will be processed. This can be used to temporarily halt all logging. initLogDist initLogDist(); This goes through the list of named loggers and sets up the distribution processor to feed them the applicable log entries as they come in. This can be used to re-enable logging. enableFacility $rv = enableFacility($name, $facility, $logLevel, $scope, @args); This function enables the specified logging facility at the specified levels. Each facility (or permutation of) is associated with an arbitrary name. This name can be used to bypass log distribution and log only in the named facility. The following facilities are available within Paranoid: facility description ===================================================== stderr prints messages to STDERR buffer stores messages in a named buffer file prints messages to a file syslog sends message to the syslog daemon email sends message to an e-mail recipient If you have your own custom facility that complies with the Paranoid::Log calling conventions you can pass this the name of the module (for example, Log::Foo). The first letter of the module will always be uppercased before attempting to load it. Log levels are modeled after syslog: log level description ===================================================== emerg, panic, system is unusable emergency alert action must be taken immediately crit, critical critical conditions err, error error conditions warn, warning warning conditions notice normal but significant conditions info informational debug debug-level messages If omitted level defaults to 'notice'. Scope is defined with the following characters: character definition ===================================================== = log only messages at this severity + log only messages at this severity or higher - log only messages at this severity or lower ! log at all levels but this severity If omitted scope defaults to '+'. Only the first two arguments are mandatory. What you put into the @args, and whether you need it at all, will depend on the facility you're using. The facilities provided directly by Paranoid are as follows: facility arguments ===================================================== stderr none buffer bufferSize (optional) file filename syslog none email mailhost, recipient, sender (optional), subject (optional) disableFacility $rv = disableFacility($name); Removes the specified logging facility from the configuration and re-initializes the distribution processor. plog $rv = plog($severity, $message); This call logs the passed message to all facilities enabled at the specified log level. ptimestamp $ts = ptimestamp(); This function returns a syslog-style timestamp string for the current time. You can optionally give it a value as returned by time() and the stamp will be for that timme. psyslog $rv = psyslog($severity, $message); This function's name may be a bit misleading. This does not cause the message to be syslogged (that's the duty of the syslog facility), but rather the message is logged in a syslog-style format according to the following template: {timestamp} {hostname} {process}[{pid}]: {message} You may want to use this if you're using, say, a file logging mechanism but you still want the logs in a syslog-styled format. More often than not, though, you do not want to use this function. DEPENDENCIES
o Paranoid::Debug o Paranoid::Input o Paranoid::Module EXAMPLES
The following example provides the following behavior: debug messages go to a file, notice & above messages go to syslog, and critical and higher messages also go to console and e-mail. # Set up the logging facilities enableFacility("debug", "file", "debug", "=", "/var/log/myapp-debug.log"); enableFacility("daemon", "syslog", "notice", "+", "myapp"); enableFacility("console-err", "stderr", "critical", "+"); enableFacility("smtp-err", "email", "critical", "+", "localhost", "root@localhost", "myapp@localhost", "MyApp Critical Alert"); # Log some messages # # Since this is only going to the debug log, we'll use psyslog # so we get the timestamps, etc. psyslog("debug", "Starting application"); # Log a notification plog("notice", "Uh, something happened..."); # Log a critical error plog("emerg", "Ack! <choke... silence>"); SEE ALSO
o Paranoid::Log::Buffer o Paranoid::Log::Email o Paranoid::Log::File o Paranoid::Log::Syslog BUGS AND LIMITATIONS
AUTHOR
Arthur Corliss (corliss@digitalmages.com) LICENSE AND COPYRIGHT
This software is licensed under the same terms as Perl, itself. Please see http://dev.perl.org/licenses/ for more information. (c) 2005, Arthur Corliss (corliss@digitalmages.com) perl v5.14.2 2010-06-03 Paranoid::Log(3pm)
All times are GMT -4. The time now is 04:29 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy