forked from logrhythm/kibana
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added script to build Events* index config JSON for ES
- Loading branch information
ryan
authored and
ryan
committed
Jul 7, 2014
1 parent
cdccdbc
commit 3eebd00
Showing
3 changed files
with
18 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
} | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"network" : { | ||
"template" : "events*", | ||
"settings" : { | ||
"index.refresh_interval" : "10s", | ||
"index.cache.filter.expire" : "2m", | ||
"index.cache.field.expire" : "2m" | ||
}, | ||
"mappings" : { | ||
"meta" : { |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,13 @@ | ||
#!/bin/sh | ||
|
||
ES_TEMPLATE=resources/network.json | ||
EVENTS_TEMPLATE=resources/events.json | ||
|
||
cat resources/elasticsearch_network_template_header.json > $ES_TEMPLATE | ||
perl scripts/buildESTemplate.pl protofiles/DpiMsgLRproto.proto resources/remapping >> $ES_TEMPLATE | ||
cat resources/elasticsearch_network_template_footer.json >> $ES_TEMPLATE | ||
|
||
cat resources/elasticsearch_events_template_header.json > $EVENTS_TEMPLATE | ||
perl scripts/buildESTemplate.pl protofiles/DpiMsgLRproto.proto resources/remapping >> $EVENTS_TEMPLATE | ||
cat resources/elasticsearch_events_template_footer.json >> $EVENTS_TEMPLATE | ||
|