Annotary
Sort
Let’s monitor your PHP applications with Pinba | Dotdeb

Let’s monitor your PHP applications with Pinba | Dotdeb

www.dotdeb.org
Jason Fisher Jason Fisher
3 years ago
Pinba – Realtime Monitoring and Statistics Server for PHP | hakre on wordpress
Cancel
Sort
nginx + fluentd config - y-ken/nginx.conf

nginx + fluentd config - y-ken/nginx.conf

gist.github.com
Jason Fisher Jason Fisher
3 years ago
The best setup using a custom log format?
log_format ltsv 'domain:$host\t'
'host:$remote_addr\t'
'user:$remote_user\t'
'time:$time_local\t'
'method:$request_method\t'
'path:$request_uri\t'
'protocol:$server_protocol\t'
'status:$status\t'
'size:$body_bytes_sent\t'
'referer:$http_referer\t'
'agent:$http_user_agent\t'
'response_time:$request_time\t'
'cookie:$http_cookie\t'
'set_cookie:$sent_http_set_cookie\t'
'upstream_addr:$upstream_addr\t'
'upstream_cache_status:$upstream_cache_status\t'
'upstream_response_time:$upstream_response_time';
 
Cancel
Sort
Bash Audit Logger

Bash Audit Logger

www.pointsoftware.ch
Jason Fisher Jason Fisher
3 years ago
for i in /etc/profile /etc/skel/.bashrc /root/.bashrc /home/*/.bashrc; do if ! grep -q "source /etc/bash_franzi" "$i" then echo "===updating $i===" cat >>"$i" <<eof #added by francois scheurer if [ -f /etc/bash_franzi ] then source /etc/bash_franzi fi #endof added EOF fi done
Cancel
#added by francois scheurer $ActionFileDefaultTemplate RSYSLOG_FileFormat #endof
Cancel
#added by francois scheurer # Filter duplicated messages $RepeatedMsgReduction off # Enable high precision timestamps $ActionFileDefaultTemplate RSYSLOG_FileFormat # Log bash audit generated log messages to file if $syslogfacility-text == 'user' and $syslogseverity-text == 'info' and $syslogtag startswith '[audit' then /var/log/userlog.info #then drop them
Cancel
Show all 3 highlights
Sort
logging dpkg to syslog - ActBlueTechBlog

logging dpkg to syslog - ActBlueTechBlog

blog.actbluetech.com
Jason Fisher Jason Fisher
3 years ago
// Log all package installs to syslog DPkg::Pre-Install-Pkgs {"/usr/local/sbin/debian-dpkg-log.sh";};
Cancel
#!/bin/bash while read package; do echo $(date +'%F %T %z') ${package#/var/cache/apt/archives/} "(sudo user: ${SUDO_USER})" \ | logger -p "auth.notice" -t "dpkg-log" done
Cancel
Show all 2 highlights
Sort

edge of sanity . ElasticSearch for Logging

edgeofsanity.net
Jason Fisher Jason Fisher
3 years ago
# Ensure ElasticSearch can open files and lock memory!
Cancel
Loading...