I can't able get system & host uptime metric beat

this is my system module but i am not getting uptime of the host

Module: system

Docs: System module | Metricbeat Reference [7.9] | Elastic

  • module: system
    period: 10s
    metricsets:

    • cpu
      #- load
    • memory
    • network
    • process
    • process_summary
    • socket_summary
      #- entropy
      #- core
      #- diskio
      #- socket
      #- service
      #- users
      process.include_top_n:
      by_cpu: 5 # include top 5 processes by CPU
      by_memory: 5 # include top 5 processes by memory
      #cpu.metrics: ["percentages","normalized_percentages"]
      #core.metrics: ["percentages"]
  • module: system
    period: 1m
    metricsets:

    • filesystem
    • fsstat
      processors:
    • drop_event.when.regexp:
      system.filesystem.mount_point: '^/(sys|cgroup|proc|dev|etc|host|lib|snap)($|/)'
  • module: system
    period: 10s
    metricsets:

    • uptime
  • module: system
    metricsets: ["diskio"]
    diskio.include_devices:
    #- module: system

period: 5m

metricsets:

- raid

raid.mount_point: '/'

Where are you looking for the uptime data?

That metricbeat metric uptime is actually the Linux uptime simply how long the server has been up.

If you are looking for this it will be in the field system.uptime.duration.ms

If you are looking to use the uptime app in Kibana you need to use heartbeat. See Here

Thanks for update. now i am able to get logs and i have to visualise uptime 11 days 4 hours 4 min like that i have to view. please advise me

Hi @psganeshk

I am not sure we support exactly what you are looking for ...

There are a number formats available. The default is called Human Readable for Durations

And what it does, is show the duration formatting at a scale that makes relative sense ... so if it has been up Days .. .it will say round to Days, example 11.70 Days will show 12 Days.... if it has only been up for 11.25 minutes it will say example 11 minutes so that formatting it autoscales so to speak to the scale for each value . Which is what many of our users want... especially for uptime becuase one it has been up for days or weeks the minutes don't really matter.

If you want a specific granularity you can set the formatting in the index pattern, go and play with it. You will need to refresh your table after you make changes.

Thanks Stephen

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