#Best way to add new (rest?) template to get data only available via private CLI (security session)

1 messages · Page 1 of 1 (latest)

feral citrus
#

We need to collect security session request-statistics for a specific application. How best can we do it using Harvest?

ornate zodiac
#

@feral citrus

You could try adding this below template in your rest 9.6.0 folder and include this template by adding below line in rest/default.yaml

  SecuritySessionByApplication: security_session_by_application.yaml

File: security_session_by_application.yaml

name:               SecuritySessionByApplication
query:              api/private/cli/security/session/request-statistics/show-by-application
object:             security_session_by_application

counters:
  - ^^application
  - ^^interface
  - ^^node
  - filter:
      - application=*curl*

export_options:
  instance_keys:
    - application
    - interface
  instance_labels:
    - node

**Note: ** I have added filter just for example, you can add as per your need, more detail for filter usage here: https://netapp.github.io/harvest/25.05/configure-rest/#filter