How to get the latest timestamp from a log file?I need the latest logs from different source and their timestamp.
try this:
index=indexname|stats latest(timestamp) by source
HI,
You can use this query:
index=* | stats latest(_time) by source