Hi,
Is there any way to show current date and time in kibana dashboard. I have tried so many ways but nothing worked
Hi,
Is there any way to show current date and time in kibana dashboard. I have tried so many ways but nothing worked
Use vega,
{
"$schema": "https://vega.github.io/schema/vega/v3.json",
"title": "Date",
"data": {
"url": {
"%context%": true,
"%timefield%": "@timestamp",
"index": "_all",
"body": {
"size": 0
}
}
},
"marks": [
{
"type": "text",
"encode": {
"enter": {
"fill": {"value": "#000"},
"fontSize": {"value": "30"},
"text": {"signal": "timeFormat(now(), '%Y-%m-%dT%H:%M:%S')"}
},
"update": {"x": {"value": "0"}, "y": {"value": "0"}}
}
}
]
}
Thanks bro for your help but I have one issue with that way I have to refresh the dashboard in every 1 sec to make this reflect
I too need that bro.. still no answer.
Okay bro no problem btw you can put 00 at the place of %s in time format and refresh dashboard in every 20 or 30 seconds.... if it helps you so
© 2020. All Rights Reserved - Elasticsearch
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.