Skip to content

Instantly share code, notes, and snippets.

@ephemeralsnow
Last active December 18, 2015 10:49
Show Gist options
  • Save ephemeralsnow/5771122 to your computer and use it in GitHub Desktop.
Save ephemeralsnow/5771122 to your computer and use it in GitHub Desktop.
fluentd+elasticsearch+kibanaの設定
# fluentd 0.10.35
# elasticsearch 0.90.1
# kibana 0.2.0
# fluentd.conf
<match java_service.accesslog>
type elasticsearch
host localhost
port 9200
index_name java_service # ignore?
type_name accesslog
logstash_format true
</match>
# $ES_HOME/config/templates/kibana.json
{
"kibana": {
"template": "logstash-*",
"mappings": {
"accesslog": {
"properties": {
"method": {
"type": "string"
},
"url": {
"type": "string"
},
"user_id": {
"type": "string"
},
"response_time": {
"type": "long"
}
}
}
}
}
}
# KibanaConfig.rb
KibanaHost = '0.0.0.0'
Time_format = 'yyyy/mm/dd HH:MM:ss'
Default_fields = ['method', 'url', 'user_id', 'response_time']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment