Skip to content

Instantly share code, notes, and snippets.

@nukemberg
Last active August 29, 2015 14:23
Show Gist options
  • Save nukemberg/1ff71aa817a69470ea94 to your computer and use it in GitHub Desktop.
Save nukemberg/1ff71aa817a69470ea94 to your computer and use it in GitHub Desktop.
Puppet HTTP report elasticsearch template
{
"template" : "puppet-*",
"mappings" : {
"puppet_report" : {
"_source": {"enabled": true},
"dynamic_date_formats": ["yyyy-MM-dd HH:mm:ss.SSSSSS ZZ"],
"properties" : {
"configuration_version" : {
"type" : "string",
"index": "not_analyzed"
},
"host" : {
"type" : "string",
"index": "not_analyzed"
},
"run_type" : {
"type" : "string",
"index": "not_analyzed"
},
"status" : {
"type" : "string",
"index": "not_analyzed"
},
"puppet_version": {
"type": "string",
"index": "not_analyzed"
},
"resource_statuses": {
"dynamic": false,
"enabled": false,
"type": "object"
}
}
}
}
}
[agent]
report=true
reports=store,log,http
reporturl=http://localhost:9200/puppet-reports/puppet_report/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment