Questions tagged [logging]
Recording activity on the system (or of a particular program) for later reporting and analysis. Logins, logouts, web server page requests, etc might all be logged.
667
questions with no upvoted or accepted answers
8
votes
2
answers
4k
views
HAProxy log outgoing requests
Currently, my HAProxy logs have information about the incoming requests: HTTP version, method, host, path, and headers.
I am trying to debug my HAProxy config, and need to know what the resulting ...
8
votes
1
answer
4k
views
Adding timestamps to supervisord logs
Is it possible to let supervisord add timestamps to the outputs in stdout_logfile and stderr_logfile? I couldn't find it anything about that in the documentation.
6
votes
0
answers
562
views
Set CMTrace Font
Might be a bit of a long shot but I was wondering if anyone knew of, or could speculate on, a way to change the default font of CMTrace. It seems to use some Sans-Serif font. I'd like to change it to ...
5
votes
0
answers
2k
views
systemd-udevd spams systemd-udevd[1523120]: veth20996a5: Failed to get link config: No such device
I have setup my server logging with graylog and now I see that my logs are being spamed by level: 3 errors like these:
systemd-udevd[1523120]: veth20996a5: Failed to get link config: No such device
I ...
5
votes
0
answers
1k
views
How can I ask journalctl to show records for all units except one?
journalctl -u ssh prints all records associated with the ssh unit. But how can I get all records not associated with the ssh unit? Things that don't work: journalctl -u '!ssh'; journalctl '!...
5
votes
0
answers
2k
views
Consuming multiline json in fluentd
I am new to fluentd.
I have applications that run in Docker containers. They are Java apps that log in JSON format. The JSON messages are usually split over multiple lines.
I would like to use the ...
5
votes
1
answer
3k
views
exclude IP from nginx access log
How to exclude some IP address from access log? This is my config:
server {
listen 443 ssl;
[...]
access_log /var/www/web/log/access.log;
error_log /var/www/web/log/error.log;
location / {
...
4
votes
1
answer
395
views
IIS 7.5 not rolling over logs hourly
I have six IIS 7.5 web servers deployed using a Shared Configuration. The properties for the logging in the configuration are set to log Per Site, W3C, and on an hourly schedule:
For five of the web ...
4
votes
1
answer
680
views
How to do proper error handling in a push setup?
I am currently building a lab environment to get a feeling on what DSC can accomplish and where the limits are.
We have a requirement to push out one-shot configurations to group of nodes based on ...
4
votes
1
answer
1k
views
Ubuntu 12.04 crash analysis - strange binary data on all open files at the moment of crash
A couple of hours ago we got a system crash on Ubuntu 12.04. We checked all the log files and there is nothing suspicious to blame to.
Last stuff that was logged was some dovecot activity. There are ...
4
votes
1
answer
565
views
How can I configure IIS to save log files in a given folder without creating a W3SVCXXX folder under it?
You can configure IIS to save its logs in any folder you want; however, even if you configure this setting at the site level, it will always create another folder under the one you choose, called ...
4
votes
1
answer
1k
views
On Apache2/mod_perl2, stderr output doesn't go to logfile nominated by ErrorLog
I like to maintain separate Apache2 logfiles for each of my named virtual hosts, like this:
<VirtualHost *:80>
ServerName myhost.example.com
ErrorLog /var/log/apache2/myhost-error.log
</...
4
votes
1
answer
717
views
Find out what fields are available to IIS 7 Advanced Logging from Modules
You can install the Advanced Logging module for IIS 7. Once installed you have the option to define new fields from several different sources. One of those sources is other modules.
What I am unable ...
4
votes
1
answer
938
views
Systemd service not logging
I have a systemd service. No logs appear from it despite my best efforts. This is the service file:
[Unit]
Description=Load Balancer
[Service]
WorkingDirectory=/home/lb
ExecStart=/usr/lib/jvm/jdk-20/...
3
votes
0
answers
493
views
How to show docker logs until container becomes healthy
I'm trying to create CI infrastructure for a project. We deploy application with docker. It usually takes some time, to start up application. I would like to see in my gitlab job logs my docker logs......
3
votes
0
answers
683
views
IIS on Windows 2019 stops logging web requests in September
scary problem with IIS on Windows 2019 Standard, IIS is not writing W3C log files! I did see this similar item, but did not need to make new directories
Three Windows Standard 2019 servers running ...
3
votes
0
answers
1k
views
access_log gets duplicate entries unless the default directive in nginx.conf is commented out
I tried to configure a custom access_log format by adding this at the root of a conf in sites-enabled:
log_format main '[$time_local] [$http_x_forwarded_for] [$status] [$body_bytes_sent] [$request] [$...
3
votes
1
answer
4k
views
kubernetes kubelet logging to files and logrotate
kubelet has an option to store log files in a log-dir (https://github.com/kubernetes/kubernetes/issues/21248).
I start kubelet with the options --logtostderr=false --log-dir=/var/log/kubelet (I have ...
3
votes
0
answers
850
views
Journald allow a user to read one unit's logs
tl;dr
How can I allow a normal user to read one systemd service's logs?
Long question
Environment: CentOS 7
A user needs access to his service's logs, which are by default consumed by journald. I can ...
3
votes
0
answers
1k
views
Kubectl logs hangs for hours and then returns to works normally
Kubectl logs hanginging for hours and shows something like:
Unable to connect to the server: read tcp
192.168.69.227:57692->35.188.160.72:443: read: connection reset by peer
We have no idea how ...
3
votes
1
answer
231
views
file change auditing (especially for web.configs)
We occasionally have configurations in web.config(s) being changed by the IT team on live production servers. I would like to create an audit trail, e.g., "On October 11 the property "foo" in file "...
3
votes
2
answers
5k
views
Use Logrotate to truncate log files after every entry or clear last 'n' entries
i have created a logrotate config file:
touch /etc/logrotate.d/.test
with the conficurations:
/home/myUser/test*.log{
size 0
hourly
rotate 0
nocreate
nocompress
...
3
votes
2
answers
115
views
Incident reporting and logging
I am looking into tool (or advice) that would allow me to track and log all incidents that happen on my infrastructure.
We have a few servers (50+) and that number is going to increase in the future,...
3
votes
0
answers
115
views
How many HTTP transactions through a connection in Haproxy
I want to know how many http transactions occur through a specific connection of Haproxy with a client (frontend).
If I could associate connection (session) id with the frontend's request I would be ...
3
votes
0
answers
4k
views
Clarifying EC2's system log following crash
We've recently had an issue with an EC2 instance that bought down our mySQL service.
I've checked the system log (AWS Console: Action > Instance Settings > Get System Log)
However the output isn't ...
3
votes
0
answers
835
views
How to view Parse Server logs in Parse Dashboard?
I'm using parse-server 2.2.14, with parse-dashboard 1.0.14.
According to this merged pull request, logs can be viewed from the dashboard.
But my dashboard just show "No logs in the last 30 days" ...
3
votes
1
answer
4k
views
tail /dev/stderr from errors within supervisord php cli script
To make this simple, I want to know if it's possible to access the STDERR like a channel. I don't want the data to log to a file and then tail the file because the amount of information that I want to ...
3
votes
1
answer
4k
views
Audit Logs for Environment Path Changes
Something (or someone) keeps changing our environment path variables on several of our servers. I have the Audit Policy (under local sec pol) set to Success, Failure for all but Process Tracking (...
3
votes
0
answers
3k
views
MySQL exits without any output
Having a strange issue. Some time ago MySQL exited suddenly when I was creating a table (I think), and I shelved the issue until now. It seems to start, but nothing happens and it exits:
141031 18:40:...
3
votes
0
answers
856
views
IIS 8 logging stops at midnight UTC
I have one IIS 8 server where the w3logsvc dies at midnight UTC (we're Central Time, so we're UTC -6). I have to manually start the service to get it back running again. I have the logging set to use ...
3
votes
1
answer
749
views
Logrotate directories (not files)
I have an application creating logfiles in a structure like this:
maillog/
2012-07-02/
production_environment-2012-07-02__23_51_50-1341265910-some name.log
production_environment-2012-07-...
3
votes
0
answers
1k
views
Make Tomcat 7.0 flush logs to disk?
How do I get Apache Tomcat 7.0, running as a service on Windows Server 2008, to flush its logs to disk without restarting the service daemon?
I did find delay on tomcat writing to logs in windows ...
3
votes
3
answers
725
views
netconsole or serial logging in XenServer DomU
I have some problems with stability of Debian guests in my XenServer hosts.
To debug this problem I wanted to use netconsole kernel module, unfortunately, because the Ethernet controller is emulated, ...
3
votes
1
answer
804
views
reconstructing shell session from a typescript
There is a bunch of tools like 'script', 'screen', 'ttyrec' which allow record content of shell sessions. By design these tool records everything displayed on pty, including control characters. ...
3
votes
3
answers
2k
views
How to track down connectivity drops
My company just changed it's old firewall (Zyxel ZyWALL 70) with a new one (Zyxel ZyWALL USG 300).
Everything seems to be working fine but sometimes, in a non-periodic span of time, connectivity ...
3
votes
1
answer
595
views
IIS6 Log time recording problems
On three separate occasions on two separate servers at nearly the same times, 6.9 hours seemingly went by without any data being written to the IIS logs, but, on closer inspection, it appears that it ...
3
votes
2
answers
1k
views
Increase precision of apache 2.2 log timestamp to include microseconds
A similar question was already asked on StackOverflow
but there was no helpful answer given and I think it fits better here.
I need to log the microseconds or milliseconds of the first response time....
3
votes
2
answers
3k
views
A linux tftpd server that can log the incoming requests to stdout/stderr
I find it crazy that this doesn't work out of the box, but neither atftpd nor tftpd-hpa seem to have any way to log to the console. I've run them in the foreground with verbosity right up but clearly ...
3
votes
1
answer
628
views
Google Cloud Logging, streaming logs constantly stops after a few seconds
I'm looking at the Logs Explorer in the Google Cloud Logging console. I click "Stream Logs" in the top right and the panel below responds.. but then between ~4-18 seconds later (I tested ...
2
votes
1
answer
418
views
Postfix: How to log to syslog only?
I have Postfix 3.8.1 on Ubuntu 23.10. How do I configure Postfix to log to syslog only? My syslog daemon is journald.
According to my understand, Postfix should log to syslog, if maillog_file is not ...
2
votes
1
answer
270
views
How can Apache log whether requests are using HTTP2 or not, in a manner that can't be easily spoofed by the client?
According to this, including %H in your LogFormat is supposed to log the HTTP protocol version, however, it appears to be unreliable.
As an example, one can telnet to port 80 of the web server and ...
2
votes
2
answers
4k
views
GCP log Explorer and slow SQL query log with Cloud SQL
Is there a way to analyze SQL Slow query logs easily on log explorer or on some other GCP tool? Now log explorer writes log entries to multiple lines (textPayload divided) and it's hard to find out ...
2
votes
0
answers
634
views
Can nginx log to an arbitrary UDP socket?
Is it possible to make nginx log its access logs to an arbitrary UDP socket, logging only the output of the log format?
The syslog facility comes close but seems to insist on adding a header with the ...
2
votes
1
answer
576
views
Can i prevent a non-root user using logger to make fake entries (e.g. sshd) in the syslog?
i just played with logger an non-root user, but it looks like everyone is able to create fake entries in the syslog using the "-t" parameter.
Is this expected to work this way?
I could flood ...
2
votes
0
answers
187
views
Is that possible to let "multilog" program output human-readable file name instead of TAI64N timestamp name?
I am using "multilog" to do log rotation in debian server.
When the log roates, "multilog" will create a filename as @TAI64N_timestamp.s or @TAI64N_timestamp.u.
I know I can ...
2
votes
1
answer
3k
views
How to collect only container logs with Datadog without host and container metrics?
I not found answer on official website and support can't give an answer. So I ask the community.
I want use Log Management without using Datadog Infrastructure.
There is a link on the official site, ...
2
votes
1
answer
1k
views
journalctl --list-boots is not listing all boots
I have a Raspberry Pi running a custom Yocto image and it's using systemd-journald for logging.
I'm wondering why there is a difference between:
root@raspberrypi4:~# journalctl -o verbose | grep -e '...
2
votes
0
answers
1k
views
Logging response in using nginx ingress controller
For regulatory purposes, I'm trying to log the entire response when using the nginx ingress controller for Kubernetes.
From looking at the documentation and other answers here, I'm using the ...
2
votes
0
answers
905
views
Time-based rotation of Docker logs
We are running a stack of Docker Swarm services and, according to our Privacy Policy, we have to keep logs only for the last 6 months, but no older. I was trying to achieve it through different ...
2
votes
1
answer
4k
views
How do I disconnect a VM from a Log Analytics workspace that has already been deleted?
I created a Log Analytics Workspace (LAW) and connected the SQL Server to it in order to test a theory. I then deleted the Log Analytics Workspace (LAW) but did not "Disconnect" it from the LAW.
I ...