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…
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…
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)…
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…
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…
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…
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",
…
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…
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…
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:…
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…
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…
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,…
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…
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…