Skip to content

Commit

Permalink
Merge pull request elastic#199 from Ryan-Kophs/eventsESConfig
Browse files Browse the repository at this point in the history
added code for Steve's networkrules index
  • Loading branch information
weberr13 committed Jul 7, 2014
2 parents 772ce3d + 910c2e1 commit 6dc7cf6
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 3 deletions.
2 changes: 1 addition & 1 deletion resources/elasticsearch_events_template_header.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"network" : {
"events" : {
"template" : "events*",
"settings" : {
"index.refresh_interval" : "10s",
Expand Down
2 changes: 1 addition & 1 deletion resources/elasticsearch_network_template_header.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"network" : {
"template" : "network*",
"template" : "network_*",
"settings" : {
"index.refresh_interval" : "10s",
"index.cache.filter.expire" : "2m",
Expand Down
33 changes: 33 additions & 0 deletions resources/networkrules.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"networkrules" : {
"template" : "networkrules",
"settings" : {
"index.refresh_interval" : "10s",
"index.cache.filter.expire" : "2m",
"index.cache.field.expire" : "2m"
},
"mappings" : {
"rule" : {
"properties" : {
"enabled" : {
"type" : "boolean"
},
"severity" : {
"type" : "string"
},
"query" : {
"type" : "object"
},
"createdDate" : {
"format" : "yyyy/MM/dd HH:mm:ss||yyyy/MM/dd||yyyy-MM-dd'T'HH:mm:ss.SSSZZ",
"type" : "date"
},
"lastModifiedDate" : {
"format" : "yyyy/MM/dd HH:mm:ss||yyyy/MM/dd||yyyy-MM-dd'T'HH:mm:ss.SSSZZ",
"type" : "date"
}
}
}
}
}
}
1 change: 0 additions & 1 deletion scripts/buildESTemplate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,3 @@ 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 6dc7cf6

Please sign in to comment.