Skip to content

Instantly share code, notes, and snippets.

View tsouza's full-sized avatar
🌍
Working from anywhere on this planet

Thiago Souza tsouza

🌍
Working from anywhere on this planet
View GitHub Profile

Keybase proof

I hereby claim:

  • I am tsouza on github.
  • I am tsouza (https://keybase.io/tsouza) on keybase.
  • I have a public key ASA9pm6FjUCJHGAaCN9IS9T-uQfviv_1_AOZ_2kupf_i6Ao

To claim this, I am signing this object:

PUT /test_items
{
"mappings": {
"item": {
"properties": {
"name_suggest": {
"type": "keyword"
}
}
}
POST _search/template/files_per_host
{
"template": {
"query": {
"indices": {
"indices": [
"<vcp-logstash-{now}>",
"<vcp-logstash-{now-1h}>"
],
"query": {
filebeat:
prospectors:
-
paths:
- "/path/to/file.log"
multiline:
pattern: (^.* TRACE .*$)|^[^\d].*$
negate: true
match: after
import json
import moment
from elasticsearch import helpers
from elasticsearch import Elasticsearch
import Geohash
es = Elasticsearch("demo:9200")