Skip to content

Instantly share code, notes, and snippets.

@kiyoto
Created January 27, 2015 04:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kiyoto/8e8b737dac39ccbf0f1e to your computer and use it in GitHub Desktop.
Save kiyoto/8e8b737dac39ccbf0f1e to your computer and use it in GitHub Desktop.
EFK for Apache
<source>
type tail
tag apache.access
format apache2
path /path/to/your/log
read_from_head true #過去ログ用。ファイルの先頭から読む
</source>
<match apache.access>
type elasticsearch
logstash_format true
host localhost
port 9200
</match
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment