11-21-2005
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 priority code to be listed in the log as well so I can get my log viewer to differentiate message priority?
Regards
Kamadana
8 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
OK guys & gals this is the issue: i am trying to sort out all the disks in all of our AIX servers.
12 hdisks w/ mirroring (so only 6 disks in uses @ any time)
2 volume groups (rootvg, vg1)
this does include muliple informix databases and misc. data.
Do you think it would be wise to... (1 Reply)
Discussion started by: Optimus_P
1 Replies
2. AIX
folks;
I'm trying to run the command "stime" I couldn't get it to work right, but it seems like it's controlled by LANG variables, how can I change the LANG variables to make the result of stime or start_time appear right (if I use stime I get letter "A" under STIME & if I use "start_time" in my... (0 Replies)
Discussion started by: moe2266
0 Replies
3. AIX
i am trying to convert .ksh script to .bat in windows box , it says awk is not recognized as internal or external command.
this is the sample .ksh script , even if i change awk to gawk it does not work its giving me syntax error, at line one ---- it's pointing ":" and "fund:"
some one plzz help.... (0 Replies)
Discussion started by: 2.5lt V8
0 Replies
4. AIX
Hi,
We have just purchased an ibm Power 520 express box with AIX 6.1 preloaded onto it. Using a null modem cable we have connected this upto a Windows 2003 server. From this Windows 2003 server we can using hyperterminal connect to it. I can aslo connect to the Advanced System Management... (16 Replies)
Discussion started by: yfayyaz
16 Replies
5. AIX
In trying to resolve my issue, I downloaded TL 11 and trying to update to it. Why the heck does not the TL fix have the required files in it? Thats another 1.+ GB download. I am also sure that when I go to install that package it will complain about rsct not being updated.
MISSING... (1 Reply)
Discussion started by: mrmurdock
1 Replies
6. AIX
Hi,
I have a script which is written for solaris x86 system.
trap 'echo "$(date):$(who am i | cut -d" " -f1) menu exec" >> /tmp/hist/.menu_history.$(who am i | cut -d" " -f1).$(uname -n).$(date +%y%m%d);exit' 1 2 3 15
trap 'echo "$(who am i | cut -d" " -f1) menu" >>... (1 Reply)
Discussion started by: boehnke
1 Replies
7. AIX
Hello all, I am hoping someone can point me in the right direction here.
We had a machine running AIX 6.1 that someone completely corrupted, so we decided to re-load it from media. I was able to boot into DVD media, select options for complete (destructive) install, AIX standard, etc. The... (0 Replies)
Discussion started by: JamesNJ
0 Replies
8. AIX
Hello Everyone,
Hope you all are doing great!
As you can see by the title on top, we are in the process of migrating alot of our servers from Power5 (physical) to Power8 (Virtual). Now it's turn for servers with HACMP Cluster on it. Let me lay out the environment like:
OLD ENVIRONMENT:
... (12 Replies)
Discussion started by: uzair_rock
12 Replies
SYSLOG(3) 1 SYSLOG(3)
syslog - Generate a system log message
SYNOPSIS
bool syslog (int $priority, string $message)
DESCRIPTION
syslog(3) generates a log message that will be distributed by the system logger.
For information on setting up a user defined log handler, see the syslog.conf(5) Unix manual page. More information on the syslog facili-
ties and option can be found in the man pages for syslog(3) on Unix machines.
PARAMETERS
o $priority
-$priority is a combination of the facility and the level. Possible values are:
syslog(3) Priorities (in descending order)
+------------+------------------------------------+
| Constant | |
| | |
| | Description |
| | |
+------------+------------------------------------+
| | |
| LOG_EMERG | |
| | |
| | system is unusable |
| | |
| | |
| LOG_ALERT | |
| | |
| | action must be taken immediately |
| | |
| | |
| LOG_CRIT | |
| | |
| | critical conditions |
| | |
| | |
| LOG_ERR | |
| | |
| | error conditions |
| | |
| | |
|LOG_WARNING | |
| | |
| | warning conditions |
| | |
| | |
|LOG_NOTICE | |
| | |
| | normal, but significant, condition |
| | |
| | |
| LOG_INFO | |
| | |
| | informational message |
| | |
| | |
| LOG_DEBUG | |
| | |
| | debug-level message |
| | |
+------------+------------------------------------+
o $message
- The message to send, except that the two characters %m will be replaced by the error message string (strerror) corresponding to
the present value of errno.
RETURN VALUES
Returns TRUE on success or FALSE on failure.
EXAMPLES
Example #1
Using syslog(3)
<?php
// open syslog, include the process ID and also send
// the log to standard error, and use a user defined
// logging mechanism
openlog("myScriptLog", LOG_PID | LOG_PERROR, LOG_LOCAL0);
// some code
if (authorized_client()) {
// do something
} else {
// unauthorized client!
// log the attempt
$access = date("Y/m/d H:i:s");
syslog(LOG_WARNING, "Unauthorized client: $access {$_SERVER['REMOTE_ADDR']} ({$_SERVER['HTTP_USER_AGENT']})");
}
closelog();
?>
NOTES
On Windows NT, the syslog service is emulated using the Event Log.
Note
Use of LOG_LOCAL0 through LOG_LOCAL7 for the $facility parameter of openlog(3) is not available in Windows.
SEE ALSO
openlog(3), closelog(3).
PHP Documentation Group SYSLOG(3)