Skip to main content

Questions tagged [logger]

The tag has no summary, but it has a tag wiki.

1 vote
0 answers
28 views

Determining cause of recurring external SSD data transfer with goal of preventing it

The LED lights for an external SSD connected via USB to a Linux Mint box indicate data transfer every 00:06:15 (6 mins 15 secs), despite no user applications (and possibly no processes) accessing the ...
Amazon Dies In Darkness's user avatar
2 votes
2 answers
890 views

Print on stdout and log with logger

I have a bash script with several "echo STRING" commands. I would like to log STRING with logger but still print it on stdout. echo STRING | logger obliviously does not do it. EDIT: echo ...
mifrey's user avatar
  • 45
0 votes
1 answer
371 views

Split logging on rsyslogd

My goal is to send all logs to one source remote and still log local but then send all the AuditD logs to its own source on port 20002. But for some reason, my auditd logs are still ending up with my ...
Jason's user avatar
  • 1,754
0 votes
1 answer
954 views

Where does `logger` save messages to on macOS?

I'm writing a shell script that utilizes the Linux logger to log output. Based on that documentation, I believe that the logging is sent to /var/log/syslog on Linux which would be var/logs/system.log ...
shackleton's user avatar
4 votes
1 answer
2k views

How to redirect rsyslog messges from a specific unix socket to a different log file without duplication?

I have been trying to implement separate logging for haproxy. But I end up with duplicate logging and can't separate logs based on the input socket or facility alone. My sample configuration in ...
GP92's user avatar
  • 915
1 vote
1 answer
2k views

Rsyslog losing log message when file does not exist

I'm encountering case when rsyslog message is lost when the file its supposed to write to does not exist. Here is my setup: log server 192.168.1.2 have such config: module(load="imtcp") ...
Kristian's user avatar
  • 289
1 vote
1 answer
2k views

Should (and how can) non-critical logs be sent to /var/log/messages using logger(1)?

I have a cron script logging msgs via | logger …. I am understanding that /var/log/syslog is mainly for critical or err msgs and /var/log/messages is for informational, non-critical msgs. If the ...
DJacobson's user avatar
0 votes
2 answers
86 views

logger command reports I am a user even if running under sudo?

I have a line logger Ok in my script. When I run it from command line with either of ./myscript.sh sudo ./myscript.sh sudo bash ./myscript.sh it writes in log Oct 17 22:32:01 d40688 mysqlf: Ok I.e. ...
Dims's user avatar
  • 3,465
0 votes
2 answers
223 views

Does logger(1) command belong to util-linux? [duplicate]

Does logger(1) command belong to util-linux? it is not shown in https://manpages.debian.org/testing/util-linux/index.html, but in https://manpages.debian.org/testing/bsdutils/logger.1.en.html.
Ben's user avatar
  • 109
1 vote
1 answer
2k views

How to record local3 with all severity levels to a file using system logger?

I'm using a VM. Ubuntu Linux. What I'm trying to do is use System logger to record the local3 facility with all severity levels to a file /var/log/local3.log I'm confused as to what the process is. Am ...
CawCawsca's user avatar
0 votes
0 answers
157 views

given `logger -t specificUser` how do filter tail by that tag? (tail -f ??? specificUser)

if i'm tagging my logs with -t, how do i filter my log searches for that specific tag? given: logger -t specificUser show it (in real time) with tail -f ???? specificUser
Sam Sammy's user avatar
2 votes
0 answers
484 views

How to encrypt messages using TLS encryption and send to sys logger?

I am using following logger command to send message to /var/log/message. logger -n 10.102.5.19 "system shutdown" my question is, how to encrypt the message("system shutdown") using TLS encryption. I ...
sks's user avatar
  • 21
2 votes
1 answer
3k 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 not ...
A R's user avatar
  • 213
0 votes
0 answers
2k 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 ...
dvory59's user avatar
  • 75
0 votes
1 answer
2k 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 ...
yael's user avatar
  • 14k

15 30 50 per page