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
apiVersion: v1 | |
kind: ServiceAccount | |
metadata: | |
name: tiller | |
namespace: kube-system | |
--- | |
apiVersion: rbac.authorization.k8s.io/v1 | |
kind: ClusterRoleBinding | |
metadata: | |
name: tiller |
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
[ | |
{ | |
"_id": "Metron-Error-Dashboard", | |
"_type": "dashboard", | |
"_source": { | |
"title": "Metron Error Dashboard", | |
"hits": 0, | |
"description": "", | |
"panelsJSON": "[{\"col\":5,\"id\":\"Errors-By-Error-Type\",\"panelIndex\":2,\"row\":9,\"size_x\":8,\"size_y\":3,\"type\":\"visualization\"},{\"col\":1,\"id\":\"Error-Source-Proportion\",\"panelIndex\":3,\"row\":9,\"size_x\":4,\"size_y\":3,\"type\":\"visualization\"},{\"col\":5,\"id\":\"Errors-By-Source-Type\",\"panelIndex\":4,\"row\":12,\"size_x\":8,\"size_y\":3,\"type\":\"visualization\"},{\"col\":1,\"id\":\"Error-Type-Proportion\",\"panelIndex\":5,\"row\":12,\"size_x\":4,\"size_y\":3,\"type\":\"visualization\"},{\"col\":8,\"id\":\"Unique-Error-Messages\",\"panelIndex\":19,\"row\":1,\"size_x\":4,\"size_y\":2,\"type\":\"visualization\"},{\"col\":3,\"id\":\"Total-Error-Messages\",\"panelIndex\":20,\"row\":1,\"size_x\":4,\"size_y\":2,\"type\":\"visualization\"},{\"col\":5,\"id\":\"Errors-By-Hostname\",\"panelIndex\":22,\"row\":15,\"size_x\ |
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
OUTPUT=http://localhost:9200 | |
indices=`cat indices.txt` | |
for INDEX in $indices | |
do | |
echo $INDEX | |
elasticdump --output=$OUTPUT/$INDEX --input="${INDEX}_mapping.json" --type=mapping | |
elasticdump --output=$OUTPUT/$INDEX --input="${INDEX}_data.json" --type=data --limit=1000 | |
done |
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
INPUT=http://localhost:9200 | |
indices=$(curl -s -XGET $INPUT/_cat/indices?h=i) | |
for INDEX in $indices | |
do | |
echo $INDEX | |
elasticdump --input=$INPUT/$INDEX --output=$ --type=data | gzip > "${INDEX}_data.json.gz" | |
elasticdump --input=$INPUT/$INDEX --output="${INDEX}_mapping.json" --type=mapping | |
done |
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
SQUID_DELIMITED %{NUMBER:timestamp}[^0-9]*%{INT:elapsed} %{IP:ip_src_addr} %{WORD:action}/%{NUMBER:code} %{NUMBER:bytes} %{WORD:method} %{NOTSPACE:url}[^0-9]*(%{IP:ip_dst_addr})? |
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
{ | |
"parserClassName": "org.apache.metron.parsers.GrokParser", | |
"filterClassName": null, | |
"sensorTopic": "squid2", | |
"writerClassName": null, | |
"errorWriterClassName": null, | |
"invalidWriterClassName": null, | |
"readMetadata": false, | |
"mergeMetadata": false, | |
"numWorkers": null, |
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
{ | |
"enrichment": { | |
"fieldMap": { | |
"hbaseEnrichment": [ | |
"full_hostname" | |
], | |
"geo": [ | |
"ip_dst_addr" | |
] | |
}, |
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
{ | |
"parserClassName": "org.apache.metron.parsers.GrokParser", | |
"filterClassName": null, | |
"sensorTopic": "squid2", | |
"writerClassName": null, | |
"errorWriterClassName": null, | |
"invalidWriterClassName": null, | |
"readMetadata": false, | |
"mergeMetadata": false, | |
"numWorkers": null, |
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
{ | |
"enrichment": { | |
"fieldMap": { | |
"geo": [ | |
"ip_dst_addr" | |
], | |
"hbaseEnrichment": [ | |
"full_hostname" | |
] | |
}, |
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
{ | |
"parserClassName": "org.apache.metron.parsers.GrokParser", | |
"filterClassName": null, | |
"sensorTopic": "squid2", | |
"writerClassName": null, | |
"errorWriterClassName": null, | |
"invalidWriterClassName": null, | |
"readMetadata": false, | |
"mergeMetadata": false, | |
"numWorkers": null, |