systemes:linux:logs

Ceci est une ancienne révision du document !


LINUX : Les logs

  • Format bracket:
  • [Wed Jan 20 09:13:50 2016] [error] [client 123.123.123.123] client denied by server configuration: proxy:www.google.com:443
  • cat vhost_error.log | cut -f 4 -d '[' | cut -f 1 -d ']' | sed 's_client __'
    123.123.123.123
    ....
  • Format bracket:
  • [Wed Jan 20 09:13:50 2016] [error] [client 123.123.123.123] client denied by server configuration: proxy:www.google.com:443
  • cat vhost_error.log | cut -f 4 -d '[' | cut -f 1 -d ']' | sed 's_client __' | sort -n | uniq -c
          6 123.123.1.1
          6 123.123.1.2
         13 123.123.1.3
         21 123.123.1.4
         10 123.123.1.5
         27 123.123.1.6
          1 123.123.1.7
         30 123.123.1.8
         14 123.123.1.9

Retour

Vous pourriez laisser un commentaire si vous étiez connecté.
  • systemes/linux/logs.1454057707.txt.gz
  • Dernière modification: 2019/02/06 14:02
  • (modification externe)