Ingest data Into elasticsearch

Hi

After following all the docs, and installed quite a few plugins I am not able to insert data from sensu to elasticsearch.

have followed the instructions

[root@master bin]# /opt/sensu/embedded/bin/gem install sensu-handlers-elasticsearch

Fetching: sensu-handlers-elasticsearch-0.0.3.gem (100%)

You can use the embedded Ruby by setting EMBEDDED_RUBY=true in /etc/default/sensu

Successfully installed sensu-handlers-elasticsearch-0.0.3

Parsing documentation for sensu-handlers-elasticsearch-0.0.3

Installing ri documentation for sensu-handlers-elasticsearch-0.0.3

Done installing documentation for sensu-handlers-elasticsearch after 0 seconds

Also, configure the handler

{

“elasticsearch”: {

“host”: “localhost”,

“port”: 9200,

“timeout”: 5,

“retry”: 3

},

“handlers”: {

“elasticsearch”: {

“type”: “pipe”,

“command”: “/etc/sensu/plugins/elasticsearch_handler.rb”

}

}

}

Any suggestion ?

I'm interested on this as well.

···

On 04/12/2017 06:50 AM, Félix Rodríguez Araujo wrote:

Hi

After following all the docs, and installed quite a few plugins I am not able to insert data from sensu to elasticsearch.

have followed the instructions
[root@master bin]# /opt/sensu/embedded/bin/gem install sensu-handlers-elasticsearch
Fetching: sensu-handlers-elasticsearch-0.0.3.gem (100%)
You can use the embedded Ruby by setting EMBEDDED_RUBY=true in /etc/default/sensu
Successfully installed sensu-handlers-elasticsearch-0.0.3
Parsing documentation for sensu-handlers-elasticsearch-0.0.3
Installing ri documentation for sensu-handlers-elasticsearch-0.0.3
Done installing documentation for sensu-handlers-elasticsearch after 0 seconds

Also, configure the handler

{
"elasticsearch": {
   "host": "localhost",
   "port": 9200,
   "timeout": 5,
   "retry": 3
},
"handlers": {
   "elasticsearch": {
     "type": "pipe",
     "command": "/etc/sensu/plugins/elasticsearch_handler.rb"
   }
}
}

Any suggestion ?

Hi buddy

Were you able to accomplish this?
Thanks
Regards

···

On 04/12/2017 06:50 AM, Félix Rodríguez Araujo wrote:

Hi

After following all the docs, and installed quite a few plugins I am not able to insert data from sensu to elasticsearch.

have followed the instructions
[root@master bin]# /opt/sensu/embedded/bin/gem install sensu-handlers-elasticsearch
Fetching: sensu-handlers-elasticsearch-0.0.3.gem (100%)
You can use the embedded Ruby by setting EMBEDDED_RUBY=true in /etc/default/sensu
Successfully installed sensu-handlers-elasticsearch-0.0.3
Parsing documentation for sensu-handlers-elasticsearch-0.0.3
Installing ri documentation for sensu-handlers-elasticsearch-0.0.3
Done installing documentation for sensu-handlers-elasticsearch after 0 seconds

Also, configure the handler

{
"elasticsearch": {
   "host": "localhost",
   "port": 9200,
   "timeout": 5,
   "retry": 3
},
"handlers": {
   "elasticsearch": {
     "type": "pipe",
     "command": "/etc/sensu/plugins/elasticsearch_handler.rb"
   }
}
}

Any suggestion ?