~cprov/charms/trusty/logstash/ls-restart-config-changes

« back to all changes in this revision

Viewing changes to README.md

  • Committer: Celso Providelo
  • Date: 2015-06-30 16:42:53 UTC
  • Revision ID: celso.providelo@canonical.com-20150630164253-nkxwzdcr445rux1a
Enabling python-logstash support via udp:5959.

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
http://ip-of-kibana
29
29
 
30
30
example 2 - Indexer + 2 x ElasticSearch + Kibana
31
 
============================================
 
31
================================================
32
32
 
33
33
    juju deploy cs:trusty/elasticsearch
34
34
    juju add-unit elasticsearch
41
41
http://ip-of-kibana
42
42
 
43
43
example 3  - Agent + Indexer + 2 x ElasticSearch + Kibana
44
 
=============================================
 
44
=========================================================
45
45
 
46
46
    juju deploy cs:trusty/elasticsearch
47
47
    juju add-unit elasticsearch
54
54
    juju add-relation logstash-agent logstash-indexer:input
55
55
 
56
56
 
 
57
example 4  - python-logstash + Indexer + 2x ElasticSearch + Kibana
 
58
==================================================================
 
59
 
 
60
    juju deploy cs:trusty/elasticsearch
 
61
    juju add-unit elasticsearch
 
62
    juju deploy cs:trusty/logstash-indexer
 
63
    juju add-relation elasticsearch:cluster logstash-indexer
 
64
    juju deploy cs:trusty/kibana
 
65
    juju add-relation elasticsearch:rest kibana
 
66
    juju expose kibana
 
67
 
 
68
    juju expose logstash-indexer
 
69
    $ python3
 
70
    >>> import logging, logstash
 
71
    >>> logger = logging.getLogger()
 
72
    >>> logger.addHandler(
 
73
    ...     logstash.LogstashHandler('<ip-of-indexer>', port=5959, version=1)) 
 
74
    >>> logger.info('Hello Logstash!!!')
 
75
 
 
76
http://ip-of-kibana
57
77
 
58
78
### Caveats
59
79
 
63
83
 
64
84
# Configuration
65
85
 
66
 
The charm supports installation from anywhere that python requeusts can reach and understand. By default it will install a recent revision (1.4.2 as of this writing) from the elasticsearch.org site. this is configurable with 2 options
 
86
The charm supports installation from anywhere that python requests can reach and understand. By default it will install a recent revision (1.4.2 as of this writing) from the elasticsearch.org site. this is configurable with 2 options
67
87
 
68
88
    juju set logstash logstash-source="https://download.elasticsearch.org/logstash/logstash/logstash-1.4.2.tar.gz" logstash-sum="d59ef579c7614c5df9bd69cfdce20ed371f728ff"
69
89
 
70
90
There is also a configuration option to add arbitrary packages pre-installation of logstash. The format is a space separated list.
71
91
 
72
 
    juju set logstash extrapackages='vim byobu'
 
92
    juju set logstash extra-packages='vim byobu'
73
93
 
74
94
# Contact Information
75
95