Sponsored Content
Full Discussion: logger + filter
Operating Systems Solaris logger + filter Post 302346850 by melanie_pfefer on Monday 24th of August 2009 08:04:32 AM
Old 08-24-2009
logger + filter

Hi,

I have an application log file and I am redirecting it to syslog
...| logger -p user.err


Howver, the size redirected is too arge and I am seeking a way to filter what to redirect to syslog.

any mean to do this, knowing that I do not want to decrease the log level of the app?

thank you
 

5 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Logger Command

Hi I have a command in a script . /usr/bin/iostat -E I would like to place an entry in /var/adm/messages (via syslog) as a daemon.notice using the logger command but i just cant work out the syntax for this , do I pipe the output of iostat into logger? or is it redirected...can somebody give me... (1 Reply)
Discussion started by: hcclnoodles
1 Replies

2. Programming

Key logger

I want to program my own key logger to register every key pushed on my system... could i record clicks? Well, my question in fact is not one at all... because i dont have a starting point. I'll appreciate your bases :(. ty. (5 Replies)
Discussion started by: Jariya
5 Replies

3. Cybersecurity

Unix keystroke logger

Hi all, Does anyone know if there is a tool in the market that could do the following when System Admin log to the server as root and perform activities according to his change request: - trap or log his keystroke for the entire duration - provide a report on the changes SA has made to the... (3 Replies)
Discussion started by: mohzub
3 Replies

4. Red Hat

Mounting temperature logger on Centos 7.0

When inserting a temperature logger into a Centos 7.0 machine, the relevant dmesg lines read: usb 2-1.4: new full-speed USB device number 4 using ehci-pci usb 2-1.4: New USB device found, idVendor=10c4, idProduct=82cd usb 2-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=0 usb... (5 Replies)
Discussion started by: figaro
5 Replies

5. Shell Programming and Scripting

Logger command not working for one script

Hi, On RHEL 7.2, I created below script in cronjob for every minute. If this process is found to be not running, it should record message in /var/adm/xymessages, start it and send email. #!/bin/bash source /export/home/prodadm/.bash_profile if ; then ... (8 Replies)
Discussion started by: ron323232
8 Replies
CLOGIT(3)						     Common Library Functions							 CLOGIT(3)

NAME
Clogit - log server messages in local log or in system logger SYNOPSIS
#include "Clog.h" int Cinitlog (char *cmd, char *logfile) int Clogit (int level, char *func, char *msg, ...) int Cvlogit (int level, char *func, char *msg, va_list ap) DESCRIPTION
Cinitlog initializes the server logging routines. Clogit logs server messages in a local log or in the system logger. Cvlogit is the same as Clogit but takes a va_list instead of a variable number of arguments. cmd specifies a string to be prepended to the syslog messages. logfile specifies a path for the server log file. If set to syslog, the system logger will be used. By default, only messages with level at least as important as LOG_INFO will be logged. The level threshold can be changed with the environment variable LOG_PRIORITY. level is associated with the message. The possible values, in order of decreasing importance are: LOG_EMERG LOG_ALERT LOG_CRIT LOG_ERR LOG_WARNING LOG_NOTICE LOG_INFO LOG_DEBUG func is the name of the function that issues the message. msg is a format as in printf. RETURN VALUE
These routines return 0 if the operation was successful or -1 if the operation failed. In the latter case, serrno is set appropriately. ERRORS
EFAULT logfile is a NULL pointer. ENAMETOOLONG The length of logfile exceeds CA_MAXPATHLEN. LCG
$Date$ CLOGIT(3)
All times are GMT -4. The time now is 05:52 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy