This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Basic Config | |
#--- | |
#substitutions: | |
# https://esphome.io/guides/configuration-types.html#substitutions | |
# device_name: esp-br3 # hostname & entity_id | |
esphome: | |
name: ${device_name} | |
esp32: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Inspired by https://gist.github.com/dc2447/6783658 | |
# Added index stats and selected more suitable types. | |
<Plugin curl_json> | |
# Gather a few index specific stats | |
<URL "http://<%= @hostname %>:9200/<%= @index_name %>/_stats"> | |
Instance "<%= @index_name %>" | |
<Key "_all/total/docs/count"> | |
Type "gauge" | |
</Key> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"title": "eslogs", | |
"services": { | |
"query": { | |
"list": { | |
"0": { | |
"query": "", | |
"alias": "", | |
"color": "#7EB26D", | |
"id": 0, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# esdiagdump | |
# | |
# Usage: esdiagdump [-h <hostname/IP>:<port>] [-o <output filename>] | |
# hostname defaults to localhost | |
# output file defaults to current directory/esdiagdump.out.<timestamp> | |
# | |
# This version is no longer being maintained. The current version lives in the elasticsearch/dev/shared/tools repository. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"_index": "logstash-2013.12.23", | |
"_type": "logs", | |
"_id": "eMsyB2q4TA6sH0bW3kCBZA", | |
"_score": null, | |
"_source": { | |
"EventTime": "2013-12-22 22:45:27", | |
"Hostname": "aapc", | |
"Keywords": -9187343239835812000, | |
"EventType": "INFO", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Add field which is composed of multiple source fields. | |
filter { | |
mutate { | |
add_field => [ "hash", "%{field1}/%{field2}/%{field3}" ] | |
} | |
anonymize { | |
algorithm => "SHA1" | |
fields => [ "hash" ] | |
key => "keyvalue" |