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

How do i put timestamp in a different timezone? #139

Open
sag-kz opened this issue Sep 20, 2023 · 0 comments
Open

How do i put timestamp in a different timezone? #139

sag-kz opened this issue Sep 20, 2023 · 0 comments

Comments

@sag-kz
Copy link

sag-kz commented Sep 20, 2023

Here is my config:
`
@type forward

<match preprod.*>
@type sql
host fluentd_mysql
port 3306
database fluentd
adapter mysql2
username root
password ******

table tablename timezone +06:00 column_mapping 'timestamp:created_at,container_id:container_id,container_name:container_name,source:source,log:log'
`

command date returns Wed Sep 20 18:21:57 +06 2023.
But the sql record is still populated by gmt time

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

1 participant