Skip to content

Instantly share code, notes, and snippets.

@robinsmidsrod
Last active August 29, 2015 14:05
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 robinsmidsrod/909d07c2269dfd0129c2 to your computer and use it in GitHub Desktop.
Save robinsmidsrod/909d07c2269dfd0129c2 to your computer and use it in GitHub Desktop.
{:timestamp=>"2014-09-02T10:48:49.644000+0000",
:message=>"+---------------------------------------------------------+\n|
An unexpected error occurred. This is probably a bug. |
\n|
You can find help with this problem in a few places: |
\n
| |
\n|
* chat: #logstash IRC channel on freenode irc. |
\n|
IRC via the web: http://goo.gl/TI4Ro |
\n|
* email: logstash-users@googlegroups.com |
\n|
* bug system: https://logstash.jira.com/ |\n
| |
\n+---------------------------------------------------------+\n
The error reported is: \n The datetime zone id '%{tz}' is not recognised"
}
if [tz] {
date {
match => [ "nginx_date", "yyyy/MM/dd HH:mm:ss" ]
timezone => "%{tz}"
target => "nginx_timestamp"
add_tag => ["timestamp_changed"]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment