Parsing UNIX MS Timestamp

Can someone provide a code snippet for parsing unix_ms from the field 'timestamp' in a json log? I'm in a documentation rabbit hole and just need some fresh eyes.

I get 'unsupported timestamp value format float64' but can't see a function to convert.

Solved Solved
1 2 151
1 ACCEPTED SOLUTION

This should be what you are looking for: 

mutate {
    convert => {
        "timestamp" => "string"
    }
}

date {
    match => [
        "timestamp",
        "UNIX",
        "UNIXMS"
    ]
    on_error => "no_date_match"
}

reference:

View solution in original post

2 REPLIES 2

This should be what you are looking for: 

mutate {
    convert => {
        "timestamp" => "string"
    }
}

date {
    match => [
        "timestamp",
        "UNIX",
        "UNIXMS"
    ]
    on_error => "no_date_match"
}

reference:

Thank you, worked like a charm.