Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ivanproskuryakov/ansible-elasticsearch-heka
https://github.com/ivanproskuryakov/ansible-elasticsearch-heka
ansible heka vagrant
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/ivanproskuryakov/ansible-elasticsearch-heka
- Owner: ivanproskuryakov
- Created: 2015-02-18T14:20:14.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-02-24T11:37:00.000Z (almost 10 years ago)
- Last Synced: 2024-10-14T06:23:56.338Z (2 months ago)
- Topics: ansible, heka, vagrant
- Language: Shell
- Homepage:
- Size: 141 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
## Installation
Launch Vagrant
```
1. vagrant up
```
Provision vagrant with ansible
```
2. ansible-playbook -i hosts/vagrant.host playbooks/jenkins-playbook.yml -vvvv
```## Access vagrant
```
ssh -p 22 [email protected] / password: vagrant
```## Heka usage
Heka listen 192.168.111.222:8325 for a data. To check is her, just open in browser: http://192.168.111.222:8325/?ParamA=mydata
This will populate Elastic with the data "ParamA=mydata", to check use following
```
curl http://192.168.111.222:9200/_search?pretty
curl http://192.168.111.222:9200/_search?pretty | grep ParamA```
or open in browser: http://192.168.111.222:9200/_search?prettyFlush Elastic index:
```
curl -XDELETE localhost:9200/backend-general
```Config: /playbooks/roles/heka-commands/heka/main.toml
```
[HttpListenInput]
address = "192.168.111.222:8325"[ESJsonEncoder]
index = "backend-general"
es_index_from_timestamp = true
type_name = "%{Type}" #Type = heka.httpdata.request
#fields = ["Uuid","Timestamp","Type","Logger","Hostname","Payload"][ElasticSearchOutput]
message_matcher = "TRUE"
#message_matcher = "Type == 'heka.httpdata.request' && Fields[UserAgent] == 'somedata'"
server = "http://192.168.111.222:9200"
flush_interval = 5000
flush_count = 10
encoder = "ESJsonEncoder"
```