Skip to content

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

@sag-kz

Description

@sag-kz

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions