# Fetch system date and time for remote serverd

**URL:** <https://discuss.elastic.co/t/fetch-system-date-and-time-for-remote-serverd/305739>\
**Category:** Kibana\
**Created:** [May 26, 2022, 5:35pm UTC](https://discuss.elastic.co/t/fetch-system-date-and-time-for-remote-serverd/305739 "2022-05-26T17:35:21Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anagha\_nambiar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/anagha_nambiar/32/97593_2.png) [@Anagha\_nambiar](https://discuss.elastic.co/u/Anagha_nambiar)\
**Post date:** [May 26, 2022, 5:35pm UTC](https://discuss.elastic.co/t/fetch-system-date-and-time-for-remote-serverd/305739/1 "2022-05-26T17:35:21Z")

</div>

In Kibana dashboard, we would like to specifically get the system date and time of a remote server.  
We have installed metricbeat agent in that server.

Could you please help to know how to use query in Kibana dashboard to get the system date and time of a monitoring server?

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [May 26, 2022, 6:16pm UTC](https://discuss.elastic.co/t/fetch-system-date-and-time-for-remote-serverd/305739/2 "2022-05-26T18:16:12Z")

</div>

Hi @Anagha_nambiar

So you are trying to query in realtime the system time of a remote server that metricbeat is running on?

If so apologies, but that is not supported, Metricbeat only writes data it does not have a direct query interface other than for info and stats

Of course every metric / event that is ingested has a `@timestamp` which is the timestamp of when the event originated, it respect the timezone of the originating system and is stored in UTC in Elasticsearch.

If you are really interested in a real-time query you would need to Look Into OSQuery

You will need to use the Elastic Agent and the OSQuery Module.

> **[Fleet and Elastic Agent Guide \[8.2\] | Elastic](https://www.elastic.co/guide/en/fleet/current/index.html)**

> **[Osquery | Kibana Guide \[8.2\] | Elastic](https://www.elastic.co/guide/en/kibana/current/osquery.html)**
>
> Kibana provides you with several options to share \*Discover\* saved searches, dashboards, \*Visualize Library\* visualizations, and \*Canvas\* workpads with others, or on a website.

---

<div class="post-metadata">

**Author:** ![Anagha\_nambiar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/anagha_nambiar/32/97593_2.png) [@Anagha\_nambiar](https://discuss.elastic.co/u/Anagha_nambiar)\
**Post date:** [May 26, 2022, 6:50pm UTC](https://discuss.elastic.co/t/fetch-system-date-and-time-for-remote-serverd/305739/3 "2022-05-26T18:50:19Z")

</div>

Yes, I am trying to query in realtime the system date & time of a remote server.

Thank you for the docs. I will go through them.

But using timestamp, can we fetch system time from servers?

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [May 26, 2022, 7:19pm UTC](https://discuss.elastic.co/t/fetch-system-date-and-time-for-remote-serverd/305739/4 "2022-05-26T19:19:41Z")

</div>

> [@Anagha\_nambiar](#):
>
> But using timestamp, can we fetch system time from servers?

No I am just saying the `@timestamp` that comes with the metricset document represents the timestamp from the server ... if you are collecting say CPU every 10s (or uptime etc.. etc) in essence you are getting the server time every 10s ... but you can not directly query the server unless you use the OSQuery functionality.

---

<div class="post-metadata">

**Author:** ![Anagha\_nambiar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/anagha_nambiar/32/97593_2.png) [@Anagha\_nambiar](https://discuss.elastic.co/u/Anagha_nambiar)\
**Post date:** [May 26, 2022, 8:08pm UTC](https://discuss.elastic.co/t/fetch-system-date-and-time-for-remote-serverd/305739/5 "2022-05-26T20:08:30Z")

</div>

Okay, I got you.

1. Does OSQuery available with the free basic version?
2. What about using Elasticsearch SQL in canvas?  
Can we use that functionality?

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [May 26, 2022, 8:16pm UTC](https://discuss.elastic.co/t/fetch-system-date-and-time-for-remote-serverd/305739/6 "2022-05-26T20:16:22Z")

</div>

> [@Anagha\_nambiar](#):
>
> Does OSQuery available with the free basic version?

Yes See Feature vs Subscription [here](https://www.elastic.co/subscriptions)

> [@Anagha\_nambiar](#):
>
> What about using Elasticsearch SQL in canvas?  
> Can we use that functionality?

To get the server time ... no ... Elasticsearch SQL is just a SQL layer on top of elasticsearch

Or are you asking if SQL and Canvas are Basic? Yes both are.

See the subscription Page referenced above

---

<div class="post-metadata">

**Author:** ![Anagha\_nambiar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/anagha_nambiar/32/97593_2.png) [@Anagha\_nambiar](https://discuss.elastic.co/u/Anagha_nambiar)\
**Post date:** [May 27, 2022, 11:54am UTC](https://discuss.elastic.co/t/fetch-system-date-and-time-for-remote-serverd/305739/7 "2022-05-27T11:54:47Z")

</div>

Thank you @stephenb for the same.  
I will update here once after referring the docs.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [June 24, 2022, 11:55am UTC](https://discuss.elastic.co/t/fetch-system-date-and-time-for-remote-serverd/305739/8 "2022-06-24T11:55:25Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
