Skip to content

Commit

Permalink
Merge pull request elastic#198 from Ryan-Kophs/eventsESConfig
Browse files Browse the repository at this point in the history
added script to build Events* index config JSON for ES
  • Loading branch information
weberr13 committed Jul 7, 2014
2 parents cdccdbc + 3eebd00 commit 772ce3d
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
3 changes: 3 additions & 0 deletions resources/elasticsearch_events_template_footer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
}
}
}
10 changes: 10 additions & 0 deletions resources/elasticsearch_events_template_header.json
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" : {
5 changes: 5 additions & 0 deletions scripts/buildESTemplate.sh
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

0 comments on commit 772ce3d

Please sign in to comment.