Skip to content

Instantly share code, notes, and snippets.

View inqueue's full-sized avatar

Jason Bryan inqueue

View GitHub Profile
...
[2015-09-18 03:53:33,784][DEBUG][discovery.zen.publish ] [Hercules] received cluster state version 1414
[2015-09-18 03:53:35,144][DEBUG][discovery.zen.publish ] [Hercules] received cluster state version 1415
[2015-09-18 03:53:36,212][DEBUG][discovery.zen.publish ] [Hercules] received cluster state version 1416
[2015-09-18 03:53:37,726][DEBUG][discovery.zen.publish ] [Hercules] received cluster state version 1417
[2015-09-18 03:53:39,029][DEBUG][discovery.zen.publish ] [Hercules] received cluster state version 1418
[2015-09-18 03:53:40,263][DEBUG][discovery.zen.publish ] [Hercules] received cluster state version 1419
[2015-09-18 03:53:41,561][DEBUG][discovery.zen.publish ] [Hercules] received cluster state version 1420
[2015-09-18 03:53:42,811][DEBUG][discovery.zen.publish ] [Hercules] received cluster state version 1421
[2015-09-18 03:53:45,611][DEBUG][discovery.zen.publish ] [Hercules] received cluster state version 1422
@inqueue
inqueue / Install_tmux
Created January 8, 2016 23:18 — forked from simme/Install_tmux
Install and configure tmux on Mac OS X
# First install tmux
brew install tmux
# For mouse support (for switching panes and windows)
# Only needed if you are using Terminal.app (iTerm has mouse support)
Install http://www.culater.net/software/SIMBL/SIMBL.php
Then install https://bitheap.org/mouseterm/
# More on mouse support http://floriancrouzat.net/2010/07/run-tmux-with-mouse-support-in-mac-os-x-terminal-app/
@inqueue
inqueue / logstash_template.json
Created February 2, 2016 22:47
Use this template to enable increase refresh_interval to 30s.
{
"template": "logstash-*",
"order": 0,
"settings": {
"index": {
"refresh_interval": "30s"
}
},
"mappings": {
"_default_": {
@inqueue
inqueue / gist:a7887fa8ea59584abb94
Created February 29, 2016 21:58
watching for yellow
{
"trigger": {
"schedule": {
"interval": "60s"
}
},
"input": {
"http": {
"request": {
"host": "localhost",
@inqueue
inqueue / topbeat_filesystem_watch_example.json
Last active March 30, 2016 15:10
Watch Filesystem Data from Topbeat
{
"metadata": {
"used_percent": 0.9,
"email_to": "email@domain.tld"
},
"trigger": {
"schedule": {
"interval": "5m"
}
},
@inqueue
inqueue / topbeat_not_reporting.json
Created August 31, 2016 22:40
Watch for alerting when Topbeat collectors are no longer reporting new data.
{
"trigger": {
"schedule": {
"interval": "1m"
}
},
"metadata": {
"skip_hosts": [""],
"window_size": "2m",
"collection_scope": "48h"
@inqueue
inqueue / es_search_filter.json
Last active November 4, 2016 17:01
Search: ES filtered OR
GET metricbeat/_search
{
"query": {
"bool": {
"filter": {
"bool": {
"should": [
{"term": {"metricset.name": {"value": "cpu"}}},
{"term": {"metricset.name": {"value": "load"}}}
]
input {
stdin {
codec => json {}
}
}
filter {
clone {
clones => ['cloned_test_event']
}
@inqueue
inqueue / default_template.json
Last active April 27, 2017 15:03
default ES index template
PUT _template/default
{
"order": 0,
"template": "*",
"settings": {
"index": {
"number_of_shards": "2",
"number_of_replicas": "1"
}
}
@inqueue
inqueue / truncate_field.json
Created February 9, 2017 15:41
Elasticsearch: truncate a field using a script processor
PUT _ingest/pipeline/truncate-field
{
"description": "Use the Script processor to truncate a field to 10 characters",
"processors": [
{
"script": {
"inline": "ctx.foo = ctx.foo.substring(0, (int) Math.min(10, ctx.foo.length()))"
}
}
]