I'm trying to populate @timestamp value to a table using the following code.
// $(row).html(item._source.message);
$(row).html(item._source._timestamp);
this is not working
but other fields apart from @timestamp we are able to populate to the table
Do you know how to populate @timestamp value to table.
Please help me in how we can do this.
We are quering the @timestamp value using moustache file from elastic search.
Okay, so that clearly indicates that @timestamp is part of the object. I think this is a jQuery escaping issue. I'm not a jQuery expert but I'd suggest trying to escape the @ character. Maybe try item._source['\\@timestamp'], according to https://api.jquery.com/category/selectors/?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.