P
P
Pavel2019-04-30 14:07:28
Working with date/time
Pavel, 2019-04-30 14:07:28

What to do with the field named @timestamp?

I get logs from elastic in VueJS and in general everything is fine, but for some reason the timestamp comes with the @ symbol at the beginning.

{
      "Host": "...",
      "@timestamp": "2019-04-29T12:31:51.825396547Z",
      "Message": "...",
      "Data": {...},
      "Level": "..."
    }

As a result I get:
*Module build failed: SyntaxError: Unexpected character '@'*.

Probably a stupid question, but what kind of format is this and how to output it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dima Pautov, 2019-04-30
@bootd

obj['@timestamp']

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question