Skip to content

Instantly share code, notes, and snippets.

@akatreyt
Created March 2, 2016 17:46
Show Gist options
  • Save akatreyt/8aa06a7df28ef357c737 to your computer and use it in GitHub Desktop.
Save akatreyt/8aa06a7df28ef357c737 to your computer and use it in GitHub Desktop.
input
{
file
{
path => ["/Users/me/Desktop/test_prod_logs/logs2016-01-04.json"]
start_position => "beginning"
type => "json"
codec => "json"
}
}
output {
elasticsearch { hosts => "localhost" index => "test_prod" }
}
---
{"server_hostname": "Hot", "response_status": 200, "remote_address": "166.173.999.991", "run_time": 0.0498049259185791, "date": "01:05:18.014798", "request_path": "/taco/1/data/", "browser": "Lockit/68 CFNetwork/758.2.8 Darwin/15.0.0"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment