4259 links
  • Arnaud's links
  • Home
  • RSS Feed
  • Tag cloud
  • Login
search: tag:log — newest first
  • jorgebastida/awslogs: AWS CloudWatch logs for Humans™
    April 12, 2023 - permalink - https://github.com/jorgebastida/awslogs
    cloudwatch eks log tools
  • A Comprehensive Guide to Structured Logging in Go | Better Stack Community

    via thomas Lac

    March 17, 2023 - permalink - https://betterstack.com/community/guides/logging/logging-in-go/
    go log
  • logging - How to work with concurrent logs in golang? - Stack Overflow
    December 1, 2022 - permalink - https://stackoverflow.com/questions/38666433/how-to-work-with-concurrent-logs-in-golang
    go log routine
  • https://github.com/stern/stern
    March 22, 2022 - permalink - https://github.com/stern/stern
    k8s log
  • Python logging - under the hood
    November 30, 2020 - permalink - https://blog.urbanpiper.com/understanding-python-logging-library/
    log python
  • Note: Replace literal \n with actual newline

    sed 's/\n/\n/g' /tmp/t

    September 30, 2020 - permalink - https://links.infomee.fr/shaare/cXcMlg
    backslash literal log logs n nomarkdown replace sed
  • Fluent Bit
    July 23, 2020 - permalink - https://docs.datadoghq.com/fr/integrations/fluentbit/#configuration-parameters
    datadog ecs log
  • Logging Cookbook — Python 3.8.3rc1 documentation
    May 14, 2020 - permalink - https://docs.python.org/3/howto/logging-cookbook.html
    cookbook log python
  • GitHub - timberio/vector: A High-Performance, Logs, Metrics, & Events Router

    via Doo

    October 10, 2019 - permalink - https://github.com/timberio/vector
    log logs
  • wercker/stern: ⎈ Multi pod and container log tailing for Kubernetes
    June 7, 2019 - permalink - https://github.com/wercker/stern
    k8s log
  • boz/kail: kubernetes log viewer

    un projet similaire à kubetail

    March 25, 2019 - permalink - https://github.com/boz/kail
    k8s kubetail log tail
  • Services - Kubernetes

    How to configure LoadBalancer (ELB) populated by k8s in aws (eks)

    February 9, 2019 - permalink - https://kubernetes.io/docs/concepts/services-networking/service/#elb-access-logs-on-aws
    elb k8s log
  • mod_log_config - Apache HTTP Server Version 2.4

    %{VARNAME}o The contents of VARNAME: header line(s) in the reply.
    %{VARNAME}i The contents of VARNAME: header line(s) in the request sent to the server.

    December 22, 2017 - permalink - http://httpd.apache.org/docs/current/mod/mod_log_config.html#logformat
    apache header log
  • Logging HOWTO — Python 3.6.2rc2 documentation

    python3 log to file AND stdout
    import logging
    logging.basicConfig(handlers=[logging.FileHandler('/var/log/runner/process1.log'),logging.StreamHandler()],format='%(asctime)s %(levelname)s %(message)s',level=logging.INFO)

    logging.info('foo')

    Encore mieux pour supporter le logrotate sans copytruncate :
    import logging.handlers
    logging.basicConfig(handlers=[logging.handlers.WatchedFileHandler('/var/log/worker/worker1.log'),logging.StreamHandler()],format='%(asctime)s %(levelname)s %(message)s',level=logging.INFO)

    /var/log/worker/*.log {
    monthly
    rotate 12
    compress
    delaycompress
    missingok
    notifempty
    create 644 root root
    }

    Python 2:

    import logging as loggingg

    logging = loggingg.getLogger('simple_example')
    logging.setLevel(loggingg.INFO)

    formatter = loggingg.Formatter('%(asctime)s %(levelname)s %(message)s')

    console_handler = loggingg.StreamHandler()
    console_handler.setLevel(loggingg.INFO)
    console_handler.setFormatter(formatter)

    file_handler = loggingg.FileHandler('/var/log/worker/worker3.log')
    file_handler.setLevel(loggingg.INFO)
    file_handler.setFormatter(formatter)

    logging.addHandler(console_handler)
    logging.addHandler(file_handler)

    July 11, 2017 - permalink - https://docs.python.org/3/howto/logging.html
    log logrotate python
  • Configure logging drivers - Docker Documentation

    Logging option

    April 20, 2017 - permalink - https://docs.docker.com/engine/admin/logging/overview/#syslog
    docker log
  • Symfony and Monolog, how use Processor in your project: a practical example « Stefano Alletti
    March 24, 2017 - permalink - https://stefanoalletti.wordpress.com/2017/03/09/symfony-and-monolog-how-use-processor-in-your-project/
    log monolog php symfony
  • logging - How to log into a file for a python & bottle web server? - Stack Overflow

    import logging
    logging.basicConfig(filename='log.txt', format=logging.BASIC_FORMAT)
    logging.error('OH NO!')
    try:
    raise Exception('Foo')
    except:
    logging.exception("Oops:")

    March 2, 2017 - permalink - http://stackoverflow.com/questions/15444695/how-to-log-into-a-file-for-a-python-bottle-web-server
    bottle log python
  • The git pickaxe

    Or "how to search text in git diff history"
    git log -p -S "string"

    February 23, 2017 - permalink - http://www.philandstuff.com/2014/02/09/git-pickaxe.html
    git log pickaxe search
  • Note: function pour log en bash

    Je me mets ça de côté pour gagner du temps la prochaine fois

    !/bin/bash

    logfile=/tmp/logfile.log
    errorfile=/tmp/error.log

    function log() {
    echo -e "\e[34m\e[1m[$(date +%Y-%m-%d) $(date +%H:%M:%S)] $1\e[0m" | tee -a /tmp/logfile.log
    }

    function logerror() {
    echo -e "\e[91m\e[1m[$(date +%Y-%m-%d) $(date +%H:%M:%S)] $1\e[0m" | tee -a /tmp/logfile.log
    }

    log "prout"
    logerror "pwet"

    February 10, 2017 - permalink - https://links.infomee.fr/shaare/tQ0ssA
    bash function log
  • Multicontainer Docker Configuration - AWS Elastic Beanstalk

    TIL

    Beanstalk is a little bit... magic. Dunno yet if its good or not :

    Elastic Beanstalk creates log volumes on the container instance, one for each container, at /var/log/containers/containername. These volumes are named awseb-logs-containername and should be mounted to the location within the container file structure where logs are written.

    For example, the following mount point maps the nginx log location in the container to the Elastic Beanstalk–generated volume for the nginx-proxy container.

    {
    "sourceVolume": "awseb-logs-nginx-proxy",
    "containerPath": "/var/log/nginx"
    }

    And all this logs can be copied into s3 automagically: http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/command-options-general.html#command-options-general-elasticbeanstalkhostmanager

    February 2, 2017 - permalink - http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/create_deploy_docker_v2config.html#create_deploy_docker_v2config_dockerrun_format
    aws beanstalk log logs
  • Git Blame: Fun with --first-parent
    December 29, 2016 - permalink - https://git-blame.blogspot.ch/2012/03/fun-with-first-parent.html
    first git log parent
  • How To Tell Apache To Not Log Certain Requests In Its Access Log

    Log selectif apache

    October 18, 2016 - permalink - https://www.howtoforge.com/setenvif_apache2
    apache log
  • Note: get aws flow logs

    aws logs get-log-events --log-group-name XX --log-stream-name YY --start-time 1476350746000

    Je commence à bien aimer aws.

    October 13, 2016 - permalink - https://links.infomee.fr/shaare/ZHDmkA
    aws flow log logs
  • SSH Blamer

    Encore un exemple d'utilisation de env= dans le authorized keys

    via skunnyk

    August 1, 2016 - permalink - http://damiengustave.fr/ssh-blamer/
    blame log ssh
  • MySQL :: MySQL 5.7 Reference Manual :: 13.4.1.3 SET sql_log_bin Syntax

    To disable bin log for the current session

    January 18, 2016 - permalink - http://dev.mysql.com/doc/refman/5.7/en/set-sql-log-bin.html
    bin log mysql
  • GoAccess - Screenshots
    November 3, 2015 - permalink - http://goaccess.io/screenshots
    apache audit log logs nginx web
  • Devise & Rails: Tracking User Logins & Sign-ups - joanswork.com
    October 9, 2015 - permalink - http://joanswork.com/devise-usage-tracking/
    devise finance log rails ruby track
  • Linux / Unix logtop: Realtime Log Line Rate Analyser

    Ptin trop bien logtop!

    tcpdump -i any -n port 53 and udp|grep 'A?'|cut -d' ' -f8|logtop

    September 16, 2015 - permalink - http://www.cyberciti.biz/faq/linux-unix-logtop-realtime-log-line-rate-analyser/
    log logtop tools
  • ruby on rails - Logging in delayed_job? - Stack Overflow
    August 20, 2015 - permalink - http://stackoverflow.com/questions/14631910/logging-in-delayed-job
    delayed_jobs log rails
  • The Log: What every software engineer should know about real-time data's unifying abstraction | LinkedIn Engineering

    Très intéressant, mais un peu long, je ferai un tldr

    May 7, 2015 - permalink - https://engineering.linkedin.com/distributed-systems/log-what-every-software-engineer-should-know-about-real-time-datas-unifying
    elk kafka log
  • How to Centralize Logs from Docker Containers -
    January 1, 2015 - permalink - https://www.loggly.com/blog/centralize-logs-docker-containers/
    docker log
  • etsy/logstash-forwarder

    un listener qui permet d'envoyer un seul evenement logstash pour plusieurs lignes de logs.

    Si on a la main sur le code source, c'est quand meme plus simple de logger en json : 1 ligne = 1 event

    Dans ce cas on peut utiliser le plugin imfile de rsyslog pour surveiller le fichier et envoyer les events :)

    December 11, 2014 - permalink - https://github.com/etsy/logstash-forwarder
    log logstash
  • Crontab Redirect to Log File With Date in Name

    Bon à savoir, pour rediriger la sortie standard d'un cron dans un fichier avec la date, penser à échapper les "%"

    /path/to/log/dir/$(date +\%Y-\%m-\%d).log

    October 30, 2014 - permalink - http://www.idevelopment.info/data/Oracle/DBA_tips/Unix/UNIX_7.shtml
    cron crontab log logs
  • logstalgia - website access log visualization - Google Project Hosting

    Logstalgia is a website traffic visualization that replays or streams web-server access logs as a pong-like battle between the web server and an never ending torrent of requests.

    May 27, 2014 - permalink - http://code.google.com/p/logstalgia/
    apache log nginx pong
  • Debian -- Details of package logtail in wheezy

    logtail permet de tail seulement la différence avec le dernier logtail qu'on a fait (un marqueur est créé pour stocker la position)

    pratique pour faire une sonde munin si on veut la moyenne ou le max de ce qu'on a dans le log depuis le dernier check

    April 14, 2014 - permalink - https://packages.debian.org/wheezy/logtail
    cat log logtail munin tail
  • Log iptables Messages to a Separate File with rsyslog | Random Bits

    une rule rsyslog
    un logrotate
    + commentaire à la regle iptable

    March 6, 2014 - permalink - http://blog.shadypixel.com/log-iptables-messages-to-a-separate-file-with-rsyslog/
    iptables log
  • LogWatch Apache / HTTP avec Virtual Host - Wiki de Romain RUDIGER

    Je commençais à me plonger dans le code de logwatch, et là, je trouve cet article qui décrit exactement ce que je voulais faire : avoir le header 'host' dans les rapports logwatch \o/

    February 6, 2014 - permalink - http://romain.novalan.fr/wiki/LogWatch_Apache_/_HTTP_avec_Virtual_Host
    apache log logwatch
  • logstash - open source log management

    Logstash c'est bien.

    En fait c'est mieux avec ses deux copains : elasticsearch et kibana !

    Logstash permet de :
    1) récupérer "des choses" (parmi des input, comme par exemple des logs),
    2) de les traiter (par exemple, appliquer des regex pour récupérer des champs),
    3) de balancer la structure obtenue après traitement "quelquepart" (il existe des tas d'output, par exemple : elasticsearch)

    Une fois que vous avez ça en place, vous pouvez visualiser vos données stockées dans elasticsearch avec kibana! (et ça donne ça : http://www.elasticsearch.org/overview/kibana/)

    Sympa pour exploiter des access.log par exemple :)

    December 13, 2013 - permalink - http://logstash.net/
    elasticsearch kibana log logstash
  • Shell : Historiser (logguer) toutes les commandes shell | L'admin sous GNU / Linux - Blog Libre
    October 31, 2013 - permalink - http://blog.admin-linux.org/administration/shell-historiser-logguer-toutes-les-commandes-shell
    historique linux log
  • Linux in My Box: Logging Shell Commands in Linux

    Comment logger toutes les commandes tappées par tous les utilisateurs sur linux

    July 18, 2012 - permalink - http://blog.kxr.me/2012/01/logging-shell-commands-in-linux.html
    linux log
  • Tutoriels Jakarta : Introduction à Log4J
    April 19, 2012 - permalink - http://beuss.developpez.com/tutoriels/java/jakarta/log4j/
    java log log4j logger