enricorossi.org

Enrico Rossi


Articles by Enrico Rossi

Rsyslog with remote log and rotation by date

Tags: debian, howto, linux, log, rsyslog

How to configure a debian (Wheezy) rsyslog daemon to receive logs from remote system, store them in a separate directory/file and the daily rotate these files with date-like extension.

What we want:

/var/log/
 ├── alternatives.log
 ├── alternatives.log.1
 .
 .
 .
 ├── remote
    ├── remote1_host_IP
       ├── remote1_host.log
       ├── remote1_host.log-20141202.gz
       ├── remote1_host.log …
Read more...

Urllib3 json cookie

Tags: cookies, howto, json, python

Login with a Json authentication into an https server with TLSv1 only SSL connection capabilities.

Python has 3 different urllib library in order to manipulate http connections, which unfortunately are not the evolution of the same project. Plus there are others libraries based on these as well.

The urllib2 has …

Read more...
← Previous Page 5 / 15 Next →