Questions tagged [logger]

The tag has no usage guidance, but it has a tag wiki.

Filter by
Sorted by
Tagged with
0
votes
1answer
89 views

Redirecting logs to a file using systemd is not working

I am trying to redirect logs to a file using systemd. I have tried adding below statements to the service. StandardOutput=file:/tmp/test1.txt StandardError=file:/tmp/test2.txt But those files are ...
0
votes
0answers
85 views

Logger on remote server

I am trying to send log message to my virtual machine from work station. Command : logger -n 192.168.122.78 Test After this command nothing shows up in /var/log/messages of VM, or work station. No ...
0
votes
0answers
17 views

Snoopy logger: libsnoopy.so file is not coming into rootfs but there in packages

When building snoopy package with yocto all the files were inside package dir, but only libsnoopy.so file is missing in rootfs though all links to libsnoopy.so.1, libsnoopy.so.2 file is present in ...
0
votes
1answer
703 views

how to use logger to write info to log

I want to use the logger command in order to write logs to /var/log/server.log NOTE: These examples use the FreeBSD version of logger. Your system may have different options, so read your local ...
0
votes
1answer
47 views

logger + how to change the logger title instead user root

I want to use the log - /var/log/message for my logs my application name is - whatsapp_man for example I send the following warning to the log [root@worker01 ~]# logger "please noitce you are before ...
1
vote
1answer
199 views

rsyslog only making log files in /var/logs

Running centos 7, my rsyslog.conf looks like this: 59 # Log all the mail messages in one place. 60 mail.* /var/log/maillog 61 mail.* /var/log/logtest1 62 mail.* /root/logtest Then I use the ...
0
votes
1answer
170 views

Logger -f command killed opening /var/log/messages in tail

I'm trying to run this command on CentOS. logger -t AUDIT_LOG -f <MY_AUDIT_LOG_FILE> & It works correctly for 10/20 seconds. Opening /var/log/messages in tail I can correctly see messages ...
2
votes
1answer
333 views

Pipe nohup output to logger w/ different priorities

I've got a third-party Python script to run in background using nohup. And instead of piping the output to a file I'd like the output to be appended to the system log using logger. Added to that I ...
0
votes
1answer
459 views

Is it good to have many log filters in rsyslog conf

I am planning to add filters in rsyslog.conf to redirect the syslog messages based on a tag so that I can log using logger and redirect to a custom log file. configuration in rsyslog.conf looks ...
0
votes
1answer
619 views

Why is directing stdout to a file inconsistent and delayed? [duplicate]

I have tried two methods to direct the output of a program's printf calls to a file. In both cases, sometimes the file is updated immediately, sometimes it takes several minutes, and sometimes it ...
1
vote
1answer
500 views

Having trouble redirecting application output to log file

I have an embedded ARM device running Linux which launches an application on boot. This application has a bunch of "printf(...)" statements in it that I need to view. The normal way I have been ...
2
votes
1answer
442 views

iptables LOG only once

I noticed that there are data in the iptables log that I don't need, so I was wondering if it's possible to change some configuration so that the log has less information, thus reducing the log's size....
2
votes
1answer
569 views

fail to log through rsyslog on an archlinux system

Using release 2016.03.01 from Archlinux, with package rsyslogd 8.18.0, I started from the minimal configuration built from Very simple config : # cat rsyslog.conf $ModLoad immark $ModLoad imudp $...
0
votes
1answer
146 views

How to customize Shorewall firewall logs

I am using Fedora 13 machine with shorewall installed. shorewall 4.6.6-RC1 iptables v1.4.7 Below is log format by shorewall: Oct 23 05:28:17 localhost kernel: shorewall:LAN-LAN:ACCEPT:IN= OUT=lo SRC=...
0
votes
1answer
108 views

Is there a way to log key presses under linux?

I am a heavy Vim user and I also use a ton of tmux and a load of bash in my everyday computer activities. In order to optimize my work flow, even more, I would like a way to get a log of all key ...
2
votes
1answer
131 views

CD with redirect to logger does not work

On Linux, the following cd works fine so cds into tmp: / # cd /tmp tmp # But this does not work (stays at root, nothing appears in /var/log/messages). Why not? / # cd /tmp 2>&1 | /usr/bin/...
1
vote
1answer
12k views

Logging incoming request to my nginx proxy server

I would like to log all incoming requests, before it hits my worker nodes.
1
vote
1answer
393 views

connecting to IRC and log all conversations

I would like to setup a tool on my server that automatically connects to a certain irc channel and logs all conversations. Also this tool should welcome a certain user with a certain pre-defined ...
3
votes
1answer
38 views

Extract file from completely disconnected machine, possibly via Kernel messages

I have a VPS running inside an OpenStack cloud that has more or less crashed completely - the provider hasn't been able to get any kind of networking on it for over 2 days, seems completely broken on ...
9
votes
1answer
22k views

Remote syslog command line Client

I use logger pretty regularly, but is there a FOSS command line tool for remote submission of syslog messages over the network? Right now, I have to configure a facility/priority pair to submit to a ...
1
vote
1answer
3k views

rsyslog && sending data to other host

Using CentOS 6.4. Problem is - that messages from kern.* facility doesn't appear on other server. Tring to send data: # logger -p kern.warning -t TEST "Test warning for remote host KERNEL" # logger ...
18
votes
2answers
27k views

Where does `logger` log its messages to in Arch Linux?

The logger command logs an entry via syslog, which usually puts that line to some file like /var/log/messages. If I understand the documentation correctly in Arch Linux all the logging is done ...
4
votes
1answer
5k views

How can I use tee and logger -t “some tag:”?

I've seen in another post which shows how to use tee and logger as shown below. tee >(logger) <<< "System Load is OK : $Current_loadadv" >(logger) is bash syntax to create a file ...
6
votes
1answer
206 views

What do you use the -t “tag” option for in logger?

When using the "logger" command to write messages to the system logs from scripts, I use the -t "tag" to store the scripts name along side the message it's written to the log. I do this to make ...
3
votes
1answer
7k views

Logger command - how to store logs in given file?

Please explain what below command does. logger_cmd="logger -p local0.info ${program-name}[$$]:" $logger_cmd "There is some files missing in ${dest-dir}" How can I write any message in log file? I ...
0
votes
2answers
2k views

How to log output to maillog?

On my current Debian setup, I have a file /var/log/mail.log which Dovecot, Postfix, and Spamassassin's spamd all output messages to. I know that the logger command can output to syslog, but is there ...
6
votes
2answers
12k views

print message on terminal as well as /var/log/messages using logger

I used below options in script to print on terminal as well as /var/log/messages echo "System Load is OK : $Current_loadadv" echo "System Load is OK : $Current_loadadv" | logger but how can i do ...