Questions tagged [syslog]
Syslog is a standard for logging program messages.
1,044
questions
0
votes
0answers
10 views
Write Ahead Logging for linux applications
I am writing a python based daemon and as part of that I would want to add recovery after crash feature. Typical write ahead logging mechanisms require you to have a DB to persist the WAL entries. But ...
0
votes
0answers
27 views
How do I display syslog messages to the user using a C program?
Using syslog() the logs go to /var/log/syslog but I want to store those logs in a different file which can be displayed to a user as a daily log file
How can i do that?
0
votes
0answers
17 views
Query global parameter values of syslog-ng [closed]
I am new to syslog, but i know we can specify some global parameters for syslog-ng using
options { };
log-msg-size option is used to specify maximum length of a message in bytes, currently in my ...
0
votes
0answers
12 views
How to upload syslog to elastic search using only udp?
I need to send syslogs to elastic search. Due to the product I am using, I can only provide a domain name and port number that will receive my syslog data.
How do I setup elastic search to accept all ...
0
votes
0answers
9 views
TLS Syslog-ng 3.30.1 not listening on port 6515
I configure the conf file on syslog-ng server to listen on port 6514, how ever for reason is not listening on the port. No error messages on syslog
source source_6514_tls {
tcp(port(6514)
tls(
...
0
votes
0answers
18 views
Ubuntu boot gdm failure HP Pavilion [closed]
After my HP laptop suspends, it often won't resume correctly.
Everything seems to start except the desktop.
Examining the syslog shows gdm errors near the end:
Jan 14 13:26:23 HpLaptop /usr/lib/gdm3/...
0
votes
0answers
23 views
How to configure rsyslog to forward logs in rfc5424micro
I'm using the ruleset with the action omfwd to forward logs to a syslog server.
I need to use the rfc5424micro format. How do I configure rsyslog to forward the messages in this specific format?
Right ...
0
votes
1answer
24 views
Graylog not showing logs or messages from client
Hell There,
I am new to graylog, we have configured client with below entry in configuration file
*.* @1*.**.88.**:514;RSYSLOG_SyslogProtocol23Format (we are using 514 port)
even we tried to to send ...
0
votes
1answer
28 views
Location of Linux OS syslogs
Can someone help me in understanding, what factors do decide whether OS syslogs are stored in /var/log/syslog or /var/log/messages?
0
votes
1answer
13 views
How to forward logs using rsyslog client
I need to forward messages from a log file to another IP - let's say 127.0.0.1 514. How do I achieve this?
I used this example from the docs of rsyslog:
module(load="imfile" PollingInterval=&...
1
vote
0answers
16 views
How to add the line breaker using CF and LF for message events? This changes have to make in CFG that generates the password reset data
I want to have the events break as each single event? How can this be done? Is there any way to do it using CR and LF?
I don't know much about CR and LF, Got eyes into this. Not sure if this will help ...
0
votes
0answers
16 views
How to detect and handle errors during logging with rsyslog
I'm using the ompgsql module to insert log messages directly to a Postgres DB. Further, the logs are in JSON prefixed with the @cee tag and are being inserted into a JSONB column.
It so happened that ...
0
votes
0answers
18 views
Send multiline via syslog
I have to send to a log collector the production log from Redmine.
Following a sample of file production.log:
Started GET "/users/7/edit" for X.X.X.X at 2020-12-30 10:21:16 +0100
Processing ...
0
votes
1answer
22 views
uvicorn suppresses python's syslog for gelf driver
I have a docker container running logging with gelf to a logging instance via udp -- all fine!
The container is based on Ubuntu 18 where rsyslog is running as a service, which works well.
Inside the ...
0
votes
1answer
70 views
SSL error while installing syslog-py using pip
Trying to install sylog-py:
pip install syslog-py --trusted-host pypi.org --trusted-host files.pythonhosted.org --proxy="http://<xxxxxxxxx>:<xxxxxxxxx>@<0.0.0.0>:<xxxx>&...
0
votes
0answers
11 views
AWS redshift “syslog access unrestricted” not giving full access to users to view all users data
I tried giving access for system tables using below command but syslog access unrestricted is not working. user1 still sees only his own queries or sessions...nothing belongs to other users or ...
0
votes
1answer
36 views
Syslog-ng 3.30.1 over TLS
I want to configure Syslog-ng server to use TLS. Im not very familiar with writing syslog-ng statement, but here is what i have so far. Need help adding the TLS portion and destination
# logs
source ...
0
votes
0answers
17 views
Is there any syslog produced for disk space?
I have been asked to monitor Linux server login attempts details and disk space details.
For login I have found /var/log/auth.log.
I am aware of df -kh command to get disk space info. Just wondering ...
0
votes
0answers
18 views
syslog-java-client, Is it support Common Event Format?
I am new to configuring syslog service. Currently I am using syslog-java-client for sending messages to my syslog server. Can anyone tell Is this syslog client supports Common Event Format for message?...
1
vote
1answer
46 views
Is it possible to setup logback configuration programmatically?
I am new to logback, I want configure logback programmatically. Currently I am using static configuration like below:
<configuration>
<appender name="KIWI" class="ch.qos....
0
votes
1answer
20 views
Logback will only log a message to syslog once
I've tried several examples of using logback to write to syslog, but the only that I've found that works is this JavaCodeGeeks example. It writes a message to syslog, but it only writes a message ...
1
vote
1answer
35 views
How to redirect the output of system() called in a C program to syslog?
Inside my C code I call system to have result from a bash command.
I.e. system("ps aux | grep my_prog | head -n 1")
All is fine when I run my program in foreground mode, but in production is ...
0
votes
1answer
23 views
Where is syslog output stored on Cygwin?
I am completely new to the UNIX environment. I see that on most Linux implementations syslog logs can be found at /var/log/syslog. On Cygwin I am invoking a syslog() call in my C source file using ...
0
votes
1answer
21 views
How do I send log to syslog in python?
I have a script to process a file. At the beginning I would like to check if the file exist, if exist and not empty or not too old. If satisfied continue processing. If not satisfied, how do I log to ...
0
votes
0answers
84 views
HAProxy UDP Load Balancing
I'm trying to configure my ubuntu as a load balancer with HAProxy. Since the 2.3 version is also UPD supported. So, basically, I want to configure my Ubuntu as a load balancer with HAProxy in order to ...
0
votes
1answer
33 views
Is it possible to add logback.xml configuration values from DB?
I want to configure logback.xml values dynamically from database.
This is my logback.xml file:
<configuration>
<appender name="KIWI" class="ch.qos.logback.classic.net....
0
votes
0answers
32 views
Docker logs to Syslog: split into individual files
I have a small docker-compose setup that doesn't justify a separate logging server. However, I want logs to persist between containers recreation. I would like to write the logs into plain text files ...
0
votes
1answer
28 views
How to send logs using SYSLOG and TLS from a windows service?
I am creating a Windows Service that will be sending logs to a remote server using SYSLOG. This server requires the logs to be sendt using TLS.
I am currently using Microsoft.Extensions.Logging....
0
votes
0answers
40 views
syslog and kern.log files are massive
I got a warning that my PC was running out of space and noticed that /var/log had taken up nearly 190 Gb. On further inspection, noticed that the kern.log and syslog files are massive, after running ...
0
votes
0answers
31 views
Manufacture a process who create empty log's line
As part of my job, i'm using C# and visual studio, and visual syslog.
I need to manufacture a process who create empty log's line. Someone have an idea\some direction of how doing that ?
those are the ...
0
votes
1answer
91 views
How to disable logging to syslog from Node-RED
By default Node-RED duplicate to the syslog every message which has sent to console. Could anyone know how to disable that duplication? I need just put messages to consolw, not in syslog. ...
1
vote
1answer
77 views
Logrus hooks with syslog by demand
I'm using golang logrus for logging and I'm having a wrapper with all the regular functions like Info(..),Infof(..) e.t.c I want to implement a wrapper function Audit(..) for logging to syslog.
I ...
1
vote
1answer
55 views
Sending Json Object string as syslog message in Python
I am using this tool to get metrics on the appliance.
The script is using sockets to send syslog message, and I'm attempting to get it to send the message using native syslog functions.
I added the ...
0
votes
0answers
15 views
/etc/syslog.conf - Log specific command and send it to specific file
Is it possible via /etc/syslog.conf to create a rule that log a specific command that user invoke and send it to a specifi log file?
For example i want that when users type history -d syslogd daemon ...
0
votes
1answer
18 views
Logstash writes simultaniously into syslog and daemon.log
Currently my Java process writes in syslog and daemon.log simultaneously.
I added a parallel write into JSON format a couple of months ago - but that should not be the issue here, I think.
How can I ...
0
votes
0answers
12 views
Why is the format in my remote syslog file showing two dates when sent via python's sysloghandler?
I am pulling gzip files from S3 and then sending data to a remote syslog server using Python's sysloghandler. Currently, I am able to pull data and then send to my syslog server, however the format ...
0
votes
0answers
16 views
log4j 2 Critical and notice SysLog in Java
I'm trying to push Critical and Notice logs to SysLog using log4j2.
I have configured my appender as
<Syslog name="SysLog" format="RFC5424" host="localhost" port="...
0
votes
1answer
13 views
Adding hours with Logstash configuration file
I'm working with logstash for 2 weeks, and I've a question about modifing the data.
The device which generate syslogs is not at the right hour, so the logs aren't at the right hour too, and I'd like ...
0
votes
1answer
19 views
Why not initializing a TcpSyslogMessageSender before every periodic sendMessage()?
I am using CloudBees Syslog Java Client in a simple application to send Syslog messages periodically to an server. All works fine but I wondered - if the TcpSyslogMessageSender-Class is initialized on ...
0
votes
1answer
32 views
Docker CE and syslog
Docker logging drivers are specified online, and these limitations.
Limitations of logging drivers
Users of Docker Enterprise can make use of ādual loggingā, which enables you to use the docker logs ...
0
votes
0answers
37 views
Google Cloud Logging show incorrect severity for Syslogs
Could somebody tell me why Google Cloud Logging show incorrect severity for my syslogs. I use CakePHP 2.1
CakeLog::config('default', [
'engine' => 'SyslogLog',
'types' => array('info', '...
0
votes
0answers
30 views
Add new function in pam_syslog.c
My code uses Pam library for user authentication. When the there is a failure to login. I would need to print syslog message in a specific format, instead of the current syslog format in the function ...
1
vote
1answer
50 views
Install fluentd on openshift without elastic search?
On openshift 4. 3, will config fluentd to forward logs to external syslog. Could I install fluentd only without install elasticsearch etc?
Thanks
Weiren
0
votes
0answers
23 views
Syslog messages in CLI
After configuring the nodes to send the log messages to the syslog server I found that when I make SSH to the syslog server all the log messages appears in the CLI and don't be written in a certain ...
1
vote
1answer
53 views
Redirect shell script stderr to syslog
I often see that both stdout and stderr are piped to the syslog. However, it is then no longer possible to distinguish in syslog whether it was an error or not. Message severity is always info (or ...
0
votes
1answer
56 views
is there any way to make syslog in one row from json-format?
I am new in logs.
Is there any way to make syslog in one row?
It has json-format in info.log, but I need to make it more readable in syslog (for google cloud logging).
I use cakephp v2.1.
How it looks ...
0
votes
0answers
24 views
Rsyslog template not working for Ruby client
We have a bunch of python apps that local to /var/log/local0.log just fine through facility 16. We've set up a rsyslog config with a specific format, which works great:
$template messageOnlyFormat,&...
0
votes
0answers
84 views
Parsing Audiocodes Logs with Fluentd Parser
Hi I am trying to parse logs from a docker container log file.
The log file has looks like this:
{"log":"[S=26853604] [BID=fb0e19:3] (N 24959591) HandleARecordQuery - Host:sip3.pstnhub....
0
votes
0answers
23 views
How can I write a textfile into a syslog.1.gz file?
import os,gzip, shutil
string = "Jul 28 14:09"
with gzip.open('/var/log/syslog.1.gz', 'rb') as f_in:
with open('/home/usr/tmp.txt', 'wb') as f_out:
for line in f_in:
...
4
votes
0answers
38 views
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......