Questions tagged [syslog]

Syslog is a standard for logging program messages.

Syslog is a standard for logging program messages.Wikipedia

1162 questions
19
votes
5 answers

Log4net: SysLog Appender Example

I am looking for example configuration on how to get Log4net logging to a Syslog server. Any help would be welcome.
JL.
  • 78,954
  • 126
  • 311
  • 459
18
votes
3 answers

Are gnu syslog(), openlog() and closelog() thread-safe?

I have been searching for some time and haven't found a definitive answer yet. The only link I found till now which sheds some light on this is here.
Konoha
  • 337
  • 1
  • 4
  • 13
18
votes
5 answers

log4j2 - Syslog appender and PatternLayout

I need to log events into the syslog. I use lo4j2 and the syslog appender. My appenders block in log4j2.xml looks like this:
Doron Gold
  • 3,664
  • 4
  • 32
  • 44
17
votes
3 answers

Find syslog max message length

Most Unix programmers would be used to the interface defined by syslog.h, and many implementations (such as glibc) have no real limit on the size of the syslog message being sent to it, but there is usually a limit on the application listening to…
Petriborg
  • 2,940
  • 3
  • 28
  • 49
16
votes
5 answers

Need suggestion for SysLog with Node.js

I have just npm install node-syslog but it doesn't work. I have a syslog server (IP address , and local0). And I'm looking for a syslog module to help me post the message to syslog. But I don't know which one I should use. Please give me some…
murvinlai
  • 48,919
  • 52
  • 129
  • 177
16
votes
1 answer

Sending Docker container logs to ELK Stack by configuring the logging drivers - Easy Method

I usually run applications as docker containers because of its high flexibility and availability. Is there a way to get the container logs into my logstash server.
15
votes
5 answers

Redirecting standard output to syslog

I'm planning to package OpenTibia Server for Debian. One of the things I want to do is add startup via /etc/init.d and daemonization of the otserv process. Thing is, we should probably redirect output to syslog. This is usually done via the syslog()…
Ivan Vučica
  • 9,529
  • 9
  • 60
  • 111
15
votes
1 answer

PHP's error_log() vs syslog()

I'm trying to decide what functionality to use for logging to a custom file. Background We have several PHP processes, both running as Apaches (mod_php) and as Deamons (CLI, forked). I would like to be able to specify a log file per process/task to…
Jacco
  • 23,534
  • 17
  • 88
  • 105
15
votes
1 answer

how to check syslog for ubuntu docker

I installed tutum/ubuntu in local vm's docker. When I login to ubuntu and run below command. logger "Test Logging" I can't find the file where this logged in. In my local system I can see the system.log or syslog or messages file in /var/log. But…
Nilesh
  • 20,521
  • 16
  • 92
  • 148
15
votes
6 answers

Centralized network logging - syslog and alternatives?

At work, we're building a distributed application (possibly across several machines on a LAN, possibly later across several continents on a WAN+VPN). We don't want log files local to each machine (filling up its disk and impossible to view in…
Julian Morrison
  • 387
  • 1
  • 2
  • 8
14
votes
3 answers

syslog command in C code

#include syslog(LOG_INFO, "Start logging"); The above syslog command is not logging in the syslog. So I tried, openlog("Logs", "", LOG_USER); syslog(LOG_INFO, "Start logging"); closelog(); This fails to log anything and I get the…
user1060517
  • 355
  • 1
  • 5
  • 17
14
votes
2 answers

have a grok filter create nested fields as a result

I have a drupal watchdog syslog file that I want to parse into essentially two nested fields, the syslog part and the message part so that I get this result syslogpart: { timestamp: "", host: "", ... }, messagepart:{ parsedfield1: "", …
Killerpixler
  • 4,200
  • 11
  • 42
  • 82
14
votes
5 answers

Centralized Logging for many Java Apps: Syslog vs JMS vs Http vs Local file

I want all my applications log to be centralized (ideally in near real-time). We will use a Log4 Appender. Which one should I use: Send log event in a JMS Queue Syslog / syslog-ng Write to a localfile and use rsync (every 3second) to replicate the…
Aerosteak
  • 987
  • 1
  • 11
  • 21
13
votes
1 answer

Docker- How to use syslog to record logs on host machine?

I wish to keeps the logs of my container to a file in my host machine for every container. I read about doing the same via logging driver. Since my host machine runs ubuntu 14.04, which has rsyslog running by default, I thought to use syslog. What…
Prashant Prabhakar Singh
  • 1,120
  • 4
  • 15
  • 33
13
votes
5 answers

Changing date format in syslog

Is there anyway we can change the date format in a particular log file being logged to by syslog? I don't want to change the way all logs are being logged, but just by log file. EDIT: I'm using syslogd (in FreeBSD) This is how my file looks like…
egorulz
  • 1,455
  • 2
  • 17
  • 28
1
2
3
77 78