05-20-2012
Thank you so much!!!!!!!! Do I do this on /etc/syslog.conf?? I looked and a part looks like this:
local5.debug /pix/dcpixlog
local4.debug /pix/pixlog
local3.debug /usr/log/cache/cachelog
local2.debug /var/log/ras/raslog
local1.debug /var/log/vpn/vpnlog
!
The local5 is what I added just a few days ago...The local1 and local2 are no longer used. Not sure about local3...local4 is most important that is all existing FW. Supposedly the local5 was for new FW. Do, I comment all above and add what you wrote?
10 More Discussions You Might Find Interesting
1. Solaris
I have been installing syslog-ng on our Solaris 9 servers. All ov them are working except two which return the following error:
# /etc/init.d/syslog start
syslog-ng service starting.
Error binding socket; addr='AF_INET(0.0.0.0:514)', error='Address already in use (125)'
... (6 Replies)
Discussion started by: takendal
6 Replies
2. UNIX for Dummies Questions & Answers
Hi,
I have a question on /etc/syslog.conf file in Solaris 10.
Below is a line taken from /etc/syslog.conf file and I know that the last field (operator) is where the logs gets outputted but how do I find out what the output file name format is going to be and which directory it gets outputted... (1 Reply)
Discussion started by: stevefox
1 Replies
3. Solaris
Hi all,
I want to implement a Syslog Server but i'm new in this area. I donīt know how to configure it in Solaris. I should like send all the logs to a application(manipule the information, por example: do the alerts, configure it, etc...) How can I do that? or Which manual can help me? Exists... (2 Replies)
Discussion started by: yflores
2 Replies
4. Solaris
HI admins,
I am facing an issue with syslog on solaris9.
It stopped the logging of messages..I tried all ways to start the syslog--/etc/init.d/syslog start, /usr/sbin/syslogd......etc....
But ps -eaf | grep sys not showing the syslog processes..........
When i start syslog using... (13 Replies)
Discussion started by: snchaudhari2
13 Replies
5. UNIX for Dummies Questions & Answers
Hi,
Im editing the file /etc/syslog.conf for Solaris 10 server in production.
I need to add "auth and authpriv.":
someone set the same? Have been successful?
I would appreciate any suggestions.
Greetings.
The unmodified arhive is: (0 Replies)
Discussion started by: musul
0 Replies
6. Solaris
Hi folks,
I am attempting to setup a Solaris 10 syslog server to receive logs from linux machines. Here's what I did:
On the server (SunOS sun226 5.10), IP address: 192.168.212.226:
1. start syslogdby issuing $/usr/sbin/syslogd -T
On a client (SunOS sun221 5.8):
1. Configured... (1 Reply)
Discussion started by: kimurayuki
1 Replies
7. Solaris
Well, this kind of silly but I think I am missing something. So we have this Solaris 10 server which acts as syslog server for network devices. Problem is the syslogs clutters whenever I use the screen utility for any work.
I am posting the conetent of /etc/syslog.conf
# more... (3 Replies)
Discussion started by: admin_xor
3 Replies
8. UNIX for Dummies Questions & Answers
Hi,
I have a solaris 11.1 server with many network interfaces (real and virtual), and one is connected to another server.
i need that syslog send the info through one specific interface, i know that in the syslog.conf file can write:
*.* @xxx.xxx.xxx.xxx (remote server IP)
but... (0 Replies)
Discussion started by: iocx
0 Replies
9. UNIX for Advanced & Expert Users
Hi,
I have a solaris 11.1 server with many network interfaces (real and virtual), and one is connected to another server.
i need that syslog send the info through one specific interface, i know that in the syslog.conf file can write:
*.* @xxx.xxx.xxx.xxx (remote server IP)
but... (1 Reply)
Discussion started by: iocx
1 Replies
10. Solaris
HI
how can i send solaris syslog to centralized logging server?
i have tried adding like below and got error:
*.err;kern.debug;daemon.notice;mail.crit @172.16.200.50:5000
and the error i got in /var/adm/messages is:
Jun 10 13:02:24 aresdb-new.alshaya.com syslogd: line 14:... (10 Replies)
Discussion started by: bentech4u
10 Replies
LEARN ABOUT DEBIAN
mojo::log
Mojo::Log(3pm) User Contributed Perl Documentation Mojo::Log(3pm)
NAME
Mojo::Log - Simple logger
SYNOPSIS
use Mojo::Log;
# Log to STDERR
my $log = Mojo::Log->new;
# Customize log file location and minimum log level
my $log = Mojo::Log->new(path => '/var/log/mojo.log', level => 'warn');
# Log messages
$log->debug("Why isn't this working?");
$log->info("FYI: it happened again");
$log->warn("This might be a problem");
$log->error("Garden variety error");
$log->fatal("Boom!");
DESCRIPTION
Mojo::Log is a simple logger for Mojo projects.
EVENTS
Mojo::Log can emit the following events.
"message"
$log->on(message => sub {
my ($log, $level, @messages) = @_;
...
});
Emitted when a new message gets logged.
$log->unsubscribe('message');
$log->on(message => sub {
my ($log, $level, @messages) = @_;
say "$level: ", @messages;
});
ATTRIBUTES
Mojo::Log implements the following attributes.
"handle"
my $handle = $log->handle;
$log = $log->handle(IO::Handle->new);
Log file handle used by default "message" event, defaults to opening "path" or "STDERR".
"level"
my $level = $log->level;
$log = $log->level('debug');
Active log level, defaults to the value of the "MOJO_LOG_LEVEL" environment variable or "debug".
These levels are currently available:
"debug"
"info"
"warn"
"error"
"fatal"
"path"
my $path = $log->path
$log = $log->path('/var/log/mojo.log');
Log file path used by "handle".
METHODS
Mojo::Log inherits all methods from Mojo::EventEmitter and implements the following new ones.
"new"
my $log = Mojo::Log->new;
Construct a new Mojo::Log object and subscribe to "message" event with default logger.
"debug"
$log = $log->debug('You screwed up, but that is ok');
Log debug message.
"error"
$log = $log->error('You really screwed up this time');
Log error message.
"fatal"
$log = $log->fatal('Its over...');
Log fatal message.
"format"
my $message = $log->format('debug', 'Hi there!');
my $message = $log->format('debug', 'Hi', 'there!');
Format log message.
"info"
$log = $log->info('You are bad, but you prolly know already');
Log info message.
"is_level"
my $success = $log->is_level('debug');
Check log level.
"is_debug"
my $success = $log->is_debug;
Check for debug log level.
"is_error"
my $success = $log->is_error;
Check for error log level.
"is_fatal"
my $success = $log->is_fatal;
Check for fatal log level.
"is_info"
my $success = $log->is_info;
Check for info log level.
"is_warn"
my $success = $log->is_warn;
Check for warn log level.
"log"
$log = $log->log(debug => 'This should work');
Emit "message" event.
"warn"
$log = $log->warn('Dont do that Dave...');
Log warn message.
SEE ALSO
Mojolicious, Mojolicious::Guides, <http://mojolicio.us>.
perl v5.14.2 2012-09-05 Mojo::Log(3pm)