Remove monitoring data

You can remove monitoring data for a session.

Delete the monitoring data (.dat files) with the gasadmin monitoring clean command. For example, if you need to free up disk space, you can remove old dat files you no longer need using the clean command.

Note:

Retrieving data

If you need to retrieve data before removing it using the gasadmin monitoring fetch command.

The gasadmin monitoring clean command has several options for removing data:
  • If you need to remove all dat files, use the option --all. All data for all sessions will be removed.
  • If you need to remove older dat files for a specific session, use the option --days. With specifying the number of days, only dat files older than the given number of days you specify, starting from today, will be removed.
  • If you need to remove all dat files for all session older than a given number of days, you can also use the --days option with the --all option to remove data.

Examples: clean --all, clean --days

  • gasadmin monitoring clean --all

    After the command executes, an output message displays:
    Cleaning all monitoring data
    Cleaning monitoring data for session :1f7008736b4ba04809ea8fbf349fe6d6
    Cleaning monitoring data for session :b4d2d93278b2ac4d5691776418bb6a04
    Removed '20210512-092457.dat'
    Removed '20210517-121331.dat'
    Removed '20210517-121507.dat'
    Cleaning monitoring data for session :bd23a5b49b06923608064a75670b1de5
    Removed '20200624-165011.dat'
  • gasadmin monitoring clean --days 1 d98290172c8f7c0d861db329f1ce6597

    After the command executes, an output message displays:
    Cleaning monitoring data for session :d98290172c8f7c0d861db329f1ce6597
    Removed '20210520-153004.dat'
    Skipped '20210521-153004.dat'
  • gasadmin monitoring clean --all --days 1
    After the command executes, an output message displays:
    Cleaning all monitoring data
    Cleaning monitoring data for session :d98290172c8f7c0d861db329f1ce6597
    Skipped '20210521-153004.dat'