Skip to Content
Cloud Native Python
book

Cloud Native Python

by Manish Sethi
July 2017
Intermediate to advanced
374 pages
8h
English
Packt Publishing
Content preview from Cloud Native Python

Logstash

Logstash needs to be installed on the server from where the logs need to be collected and are shipped across to Elasticsearch to create indexes.

Once you have installed Logstash, it is recommended to configure your logstash.conf file, which is located at /etc/logstash, with details such as Logstash log's file rotation (that is /var/log/logstash/*.stdout*.err, or *.log) or a suffix format, such as data format. The following code block is a template for your reference:

 # see "man logrotate" for details # number of backlogs to keep rotate 7 # create new (empty) log files after rotating old ones create # Define suffix format dateformat -%Y%m%d-%s # use date as a suffix of the rotated file dateext # uncomment this if you want your ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Python for DevOps

Python for DevOps

Noah Gift, Kennedy Behrman, Alfredo Deza, Grig Gheorghiu
Cloud Native

Cloud Native

Boris Scholl, Trent Swanson, Peter Jausovec

Publisher Resources

ISBN: 9781787129313Supplemental Content