Questions tagged [syslog]

Syslog is a standard for logging program messages.

Syslog is a standard for logging program messages.Wikipedia

1162 questions
8
votes
2 answers

How to log puppet agent and master

Puppet writes logging by default to syslog. Why is that? Most software write to some separate logfile. I checked the documentation and there is a mention that you can write to a log file but there was a mention that "This is generally not used." Is…
palto
  • 3,523
  • 5
  • 32
  • 38
7
votes
3 answers

cannot find syslog.h on windows

I am rewriting a c program which was used to linux, now I'll reused it on windows, I write a bat file. I run this file as administrator, then error occurs: syslog.h:No such file or directory. Could you please give me some advices? thx.
diligent
  • 2,282
  • 8
  • 49
  • 64
7
votes
2 answers

Log4j and syslogappender

I have a java application using log4j SyslogAppender (facility=USER) and I can see using tcpdump on port 514 that my application is sending intended log message as a datagram and also netstat shows me that syslogd (red hat) is running and listening…
Prasanna
  • 3,703
  • 9
  • 46
  • 74
7
votes
1 answer

Log to rsyslog facility from a python script

I have this in my /etc/rsyslog.conf: local0.* /var/log/local.log And I have a simple python script which reads from standard input and is supposed to send to local0 #!/usr/bin/python3 import sys, syslog syslog.openlog(ident="MY_SCRIPT",…
400 the Cat
  • 266
  • 3
  • 23
7
votes
1 answer

Logback's Syslog Appender

I've read logback's documentation multiple times on the syslog appender. I am under the impression that a syslog daemon runs on every computer, so I set up the configuration just as they have it in their example. When I run the program no errors…
auwall12688
  • 389
  • 3
  • 11
  • 23
7
votes
2 answers

Syslog - How to Show Colorized Messages?

I need to clarify that I am not looking to colorize the log output, and I am only interested in the program outputs that are written to syslog. So here is the scenario, I have a systemd unit service that runs a script, which indicates the 256 colors…
user3707763
  • 121
  • 1
  • 8
7
votes
4 answers

Can I log from a Laravel blade template?

I want to log from within a Laravel blade template. Can I log something using the Laravel logger, or a simple syslog(1, 'my message') would even be better.
kramer65
  • 50,427
  • 120
  • 308
  • 488
7
votes
1 answer

macOS High Sierra syslog does not work

I try to send a log message to syslog via logger -is -t TestApp -p user.error TEST MESSAGE1 Then I check if it is there tail system.log ... Apr 12 16:33:00 HOSTNAME TestApp[3024]: TEST MESSAGE1 So it works. Then I try to do the same via a compiled…
Eugen
  • 479
  • 5
  • 16
7
votes
1 answer

What's wrong with my logback syslog appender?

I'm trying to get a logback syslog appender working, and I've definitely got something misconfigured. I've created a small sample project which I think should log to syslog, yet it doesn't. I'm sure I'm missing something stupid. Here's the appender…
Paul Sanwald
  • 10,899
  • 6
  • 44
  • 59
7
votes
1 answer

Syslog - Is it a good idea to dump all of your applications' logs to Syslog?

I am developing many applications that working together and now having discussion how to consolidate logs. What I am seeing from many applications, they all dump logs to /var/log/ or any directory related to application itself. Ex. /var/log/hadoop,…
A-letubby
  • 8,474
  • 8
  • 38
  • 48
7
votes
1 answer

How to consolidate Multiline logs in syslog

I am feeding my var/log/message using rsyslog from a tool. The exception appears in multiple lines (on line per message) rather than logging it as one multi-line message. I would like my /var/log/message to look like the catalina.out message. Is…
White Roses
  • 309
  • 1
  • 6
  • 16
7
votes
3 answers

Printing message on the screen and also send to the syslog at the same time

I'm trying to implement -s (i.e. silent) option in my script - when given the Errors/Info etc, will be send to the syslog otherwise printing on the screen and also sending to the syslog at the same time. That's what I'm doing: echo -e "This Is a…
MacUsers
  • 2,091
  • 3
  • 35
  • 56
7
votes
1 answer

SQL Server 2008 log of dropped stored procs

I am using SQL Server 2008 and noticed that an important stored procedure was missing. How do I find out when and by whom a stored procedure was dropped.
tom
  • 1,822
  • 4
  • 25
  • 43
7
votes
3 answers

SyslogAppender not working

I have a java program and I want to log in /var/log/messages file on fedora machine. I am usin log4j SyslogAppender but its not working. my log4j properties file contains # Set root category priority to INFO and its only appender to…
Abhishek bhutra
  • 1,400
  • 1
  • 11
  • 29
7
votes
1 answer

Logging to syslog vs filesystem: pros and cons

Most of the applications and services log to filesystem. Why don't they use syslog? Is it slow or unreliable? What are the real pros and cons of using syslog?
weekens
  • 8,064
  • 6
  • 45
  • 62