Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: syslog time as @timestamp using grok filter #83

Closed
megastef opened this issue Jan 5, 2015 · 2 comments
Closed

Question: syslog time as @timestamp using grok filter #83

megastef opened this issue Jan 5, 2015 · 2 comments

Comments

@megastef
Copy link

megastef commented Jan 5, 2015

my filter:
filter://grok://?grok=%{SYSLOGTIMESTAMP:sys_log_time} %{DATA:message}

How can I define that sys_log_time is parsed and used in the @timestamp field?

@bpaquet
Copy link
Owner

bpaquet commented Jan 5, 2015

This should work : use %{SYSLOGTIMESTAMP:timestamp} in the grok expression,
and add date_format parameter which to parse the date. Date format are
documented here : http://momentjs.com/docs/#/parsing/string-format/

Bertrand

On Mon, Jan 5, 2015 at 9:02 PM, Stefan Thies notifications@github.com
wrote:

my filter:
filter://grok://?grok=%{SYSLOGTIMESTAMP:sys_log_time} %{DATA:message}

How can I define that sys_log_time is parsed and used in the @timestamp
https://github.com/timestamp field?


Reply to this email directly or view it on GitHub
#83.

@megastef
Copy link
Author

megastef commented Jan 5, 2015

cool thx!

@bpaquet bpaquet closed this as completed Feb 20, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants