Questions tagged [syslog]

Syslog is a standard for logging program messages.

Syslog is a standard for logging program messages.Wikipedia

1162 questions
5
votes
3 answers

Read head / tail of gzip file without reading it into memory

Possible Duplicate: How can I tail a zipped file without reading its entire contents? I have a 7GB gzip syslog file that extracts to over 25GB. I need to retrieve only the first and last lines of the file without reading the whole file into…
Mike Pennington
  • 41,899
  • 19
  • 136
  • 174
5
votes
0 answers

Syslog RFC 5424 client library - C++

Are you aware of any decent permissively (LGPL) licensed (or not, in which case I'd use it for reference) network syslog library (RFC5424) in C++ (or even C, bindings are not very difficult to write). I found liblogging.org, but it's been pretty…
qdot
  • 6,195
  • 5
  • 44
  • 95
5
votes
3 answers

How can I map linux syslog to printf in C

I have a linux application running on my desk top, and I wanted to redirect the syslog() calls to printf() calls. Note: I do not want to replace the calls, just redirect So I wrote some code to do this: #ifndef EMBED #define syslog(level, stuff)…
Mike
  • 47,263
  • 29
  • 113
  • 177
4
votes
2 answers

Does Log4j SyslogAppender support MDC and NDC

Simple really, does Log4j SyslogAppender support MDC and NDC in the sense that the output is structured data i.e. uses the structured data features of the protocol? Further, are there any limits on what can be put in the MDC and successfully…
Simon Gibbs
  • 4,737
  • 6
  • 50
  • 80
4
votes
1 answer

how to parse syslog timestamp

http://www.syslog.cc/ietf/drafts/draft-ietf-syslog-protocol-23.txt 6.2.3.1. Examples in the above link provides examples of different timestamp formates. How can I parse these timestamps in C? On-the-fly, any type of message can arrive and I want…
hari
  • 9,439
  • 27
  • 76
  • 110
4
votes
0 answers

AWS ECS nodejs app propagate log level to PaperTrail using Logspout

I'm running apps on docker which they are nodejs/express apps. They are doing logging in info, debug, error but when i open PaperTrail all of log levels are messed like debug is error which is weird... How can i change how log levels are mapped or…
Emrah Mehmedov
  • 1,492
  • 13
  • 28
4
votes
0 answers

why winston-syslog re-opens connection when .close() is invoked on the logger

I have a simple jest test code that creates an instance of a new winston logger using the following transport configuration: it("using TCP protocol", async (done) => { const sys: any = new ws.Syslog({ host: "localhost", …
lvjkumar
  • 41
  • 2
4
votes
0 answers

Stop log4j from logging into syslog

I am trying to configure log4j2 to write logs in several files using Routing & RollingFile appenders, and so far everything works well. However, there is an unwanted side effect - it also logs into Linux syslog. Is there any way to…
Arthur
  • 41
  • 2
4
votes
0 answers

Modifying HAProxy Lua Library Path

I am trying to load Lua script from HAProxy. In the Lua script, the following line is causing an error: local http = require("socket.http") Intially I gathered from journalctl -xe output that the library was not installed. I installed it using…
Abrar Hossain
  • 2,594
  • 8
  • 29
  • 54
4
votes
1 answer

docker-compose logging is not working with syslog option

I have the following docker-compose configuration: version: '3' services: worker: image: // image logging: driver: syslog options: syslog-address: "udp://XXX.papertrailapp.com:XXXX" tag:…
dylanjha
  • 2,303
  • 4
  • 28
  • 47
4
votes
1 answer

How to get perl stderr to httpd log file when using syslog

This question is about HTTPD (Apache) 2.? on centOS and modperl 1.7+ When I use the apache directive ErrorLog logs/error_log, my perl warnings show up in the error_log file. When I change this to ErrorLog syslog:local1, no perl warnings show up in…
ryansstack
  • 1,396
  • 1
  • 15
  • 33
4
votes
1 answer

What is Firebase solution for logging?

I am looking for a Firebase solution for logging. I am not sure if Firebase offers a solution for this or not. I have looked at FireBase analytics but this is not quite a match, you do not get a view that one would typically expect from a system…
Wayne
  • 3,359
  • 3
  • 30
  • 50
4
votes
0 answers

Call to php function syslog in docker container dosn't work

i'm trying to dockerize my php application. I have a container for NGINX and PHP-FPM. My application writes some log data to the syslog via the PHP openlog and syslog functions like this: openlog("myapp.test", LOG_ODELAY | LOG_CONS,…
elpado
  • 63
  • 1
  • 6
4
votes
1 answer

Logging from Docker

I have a rails app running through docker. I bring up the app with docker-compose (config below). The whole app covers a mysql, redis, rails (including sidekiq workers), nginx (with react frontend) and a rsyslog server, which forwards all logs to…
martin
  • 3,289
  • 5
  • 22
  • 27
4
votes
1 answer

Auditd showing duplicate lines in audit.log

I'm having an issue where auditd seems to be logging the same message twice, see below for example: type=EXECVE msg=audit(1495742109.857:90234552): argc=1 a0="/bin/bash" type=EXECVE msg=audit(1495742109.857:90234552): argc=1 a0="/bin/bash" and here…
BeeAyeEye
  • 41
  • 2