Support Questions
Find answers, ask questions, and share your expertise

How to convert epoch (Unix timestamp) into timestamp





I want to convert one column of my CSV file which is named as "EpochWithMicroSec", datatype -> epoch. I want to convert this column into 'Timestamp' and pass it to elasticsearch to visualize logs against time in kibana. Following attached is the error i am getting on using the 'ConvertRecord' processor and attaching the screenshots of properties i have configured.

    1 REPLY 1

    Super Collaborator

    Hi @shraddha srivastav,

    Apperently you try to convert string field into the time stamp.

    on your record schema at the source end you shoud define the data type as long instead of string for EpochWithMicroSec

    under the fields secton


    so that the conversion shall be able to perform from source to target.

    hope this helps!!

    Take a Tour of the Community
    Don't have an account?
    Your experience may be limited. Sign in to explore more.