New answers tagged

1

Do a trace using X-Ray and you can see where along the path it is failing. https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-using-xray-maps.html


1

After a log of googling I found that you can add this at the end of the line when you declare your custom Log. "expr=%{REQUEST_STATUS} > 200" It will log if the status is higher then 200 You can customize this for your need. "expr=%{REQUEST_STATUS} >= 400" My final config is : CustomLog ${APACHE_LOG_DIR}/access.log combined "...


0

Actually we need not change the ownership of any files under /var/log. I faced the same issue: sudo -u logcheck logcheck -o -t Error: Could not run logtail or save output. I tried providing logcheck user permission to files under /var/log using the access list and it worked for me. # setfacl -R -m u:logcheck:rwx /var/log/secure* # setfacl -R -m u:logcheck:...


1

You can try the iptables TEE target, but it has a restriction that the destination to copy the packet to must be on the same Layer 2 segment. From the man page: The TEE target will clone a packet and redirect this clone to another machine on the local network segment. In other words, the nexthop must be the target, or you will have to configure the ...


0

You can read the log by unzipping it with gunzip -c <filename.log.gz> Then you can read it with varnishlog -r <filename.log>


0

Syslog and the audit subsystem have different purposes - syslog is a general logging daemon available for any application or the system to use for any reason. The audit daemon's job is to track specific activities or events to determine who did what and when.


1

mod_status provides counters for total requests and total bytes served, plus some more stats. If all you need is total numbers (not by path/status/etc) this works. https://httpd.apache.org/docs/2.4/mod/mod_status.html You can configure a Prometheus exporter to scrape it, so it will be available for graphing, alerting and analyzing trend over time: https://...


0

It could be possible to tune nginx error_log level so that it contains the details you are looking for. However, there will be a lot of other logging included too. These kinds of requests end up in the main nginx error.log, since there is no HTTP request and therefore no virtual host information. I recommend you to actually describe what exactly you are ...


0

Below is the response from IBM explaining some of the logs + our own analysis deciphering "Session Statistics" events - which allowed us to troubleshoot a rather challenging issue. Hope this helps someone! Response from IBM (it's long): Engineering is not considering most of the log messages to be deciphered for customers, they are mostly for ...


0

I simply do this (buddy variable is just an example, you can put anything there): #!/bin/bash now=$( date +%Y%m%d-%H%M-%S ) buddy=`cat /proc/buddyinfo | grep Normal` echo "$now, $buddy" >> /home/myuser/buddyinfo-logger.log This works perfectly.


0

Ubuntu 18.04 and 20.04 now use 'systemd' and log to the journal. To change that, do the following: Edit the file: /lib/systemd/system/tomcat9.service Comment out the line: SyslogIdentifier=tomcat9 and add these two lines: StandardOutput=append:/var/log/tomcat9/catalina.out StandardError=append:/var/log/tomcat9/catalina.out


Top 50 recent answers are included