3733 links
  • Arnaud's links
  • Home
  • Login
  • RSS Feed
  • ATOM Feed
  • Tag cloud
  • Picture wall
  • Daily
Links per page: 20 50 100
◄Older
page 1 / 2
30 results tagged log x
  • Services - Kubernetes
    How to configure LoadBalancer (ELB) populated by k8s in aws (eks)
    February 9, 2019 at 12:12:15 PM GMT+1 - permalink - archive.org - 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 at 2:37:08 PM GMT+1 - permalink - archive.org - 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 at 10:05:21 AM GMT+2 * - permalink - archive.org - https://docs.python.org/3/howto/logging.html
    log logrotate python
  • Configure logging drivers - Docker Documentation
    Logging option
    April 20, 2017 at 4:27:25 PM GMT+2 - permalink - archive.org - 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 at 5:09:44 PM GMT+1 - permalink - archive.org - 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 at 8:56:16 PM GMT+1 - permalink - archive.org - http://stackoverflow.com/questions/15444695/how-to-log-into-a-file-for-a-python-bottle-web-server
    bottle log python
  • 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 at 10:29:21 AM GMT+1 - permalink - archive.org - https:///?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 at 3:22:37 PM GMT+1 - permalink - archive.org - 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 at 1:37:32 PM GMT+1 - permalink - archive.org - 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 at 3:11:30 PM GMT+2 - permalink - archive.org - 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 at 2:37:35 PM GMT+2 - permalink - archive.org - https:///?ZHDmkA
    aws flow log logs
  • SSH Blamer
    Encore un exemple d'utilisation de env= dans le authorized keys

    via skunnyk
    August 1, 2016 at 5:09:11 PM GMT+2 - permalink - archive.org - 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 at 4:51:45 PM GMT+1 - permalink - archive.org - http://dev.mysql.com/doc/refman/5.7/en/set-sql-log-bin.html
    bin log mysql
  • GoAccess - Screenshots
    November 3, 2015 at 2:41:44 PM GMT+1 - permalink - archive.org - http://goaccess.io/screenshots
    apache audit log logs nginx web
  • Devise & Rails: Tracking User Logins & Sign-ups - joanswork.com
    October 9, 2015 at 4:37:41 PM GMT+2 - permalink - archive.org - http://joanswork.com/devise-usage-tracking/
    devise 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 at 5:27:07 PM GMT+2 - permalink - archive.org - 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 at 5:47:04 PM GMT+2 - permalink - archive.org - 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 at 2:39:40 PM GMT+2 - permalink - archive.org - 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 at 3:08:17 PM GMT+1 - permalink - archive.org - 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 at 2:57:39 PM GMT+1 - permalink - archive.org - https://github.com/etsy/logstash-forwarder
    log logstash
Links per page: 20 50 100
◄Older
page 1 / 2
Shaarli - The personal, minimalist, super-fast, database free, bookmarking service by the Shaarli community - Help/documentation