Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The opEvents filter feature allows users to save filters for the "Current Events" table in opEvents. This feature also enables bookmarking the URL with filter parameters, making it easy to reuse or share with others.

Creating a filter:


  1. Use the current events table filter (located above the table on the right side) to filter the data.
  2. Click on the "Save Filter" button.
  3. A modal will open.
  4. Enter a name for the filter and save it.

...

In this release, filters cannot be edited or deleted using the GUI. To modify or delete a filter, access the /var/filters/usr/local/omk/conf/EventGUIFilters.json file, which stores the saved filters.

The JSON file has the following structure (note that the "groups" field has no impact on the filters in the current release):

Code Block
titlefiltersEventGUIFilters.json
{
   "filters" : [
      {
         "fields" : {
            "priority" : 1,
            "node" : "iregex:check"
         },
         "name" : "Filter2",
         "groups" : [
            "network"
         ]
      },
      {
         "fields" : {
            "node" : "iregex:check",
            "priority" : "1"
         },
         "groups" : [
            "network"
         ],
         "name" : "Filter1"
      },
      {
         "groups" : [
            "network"
         ],
         "name" : "Filter3",
         "fields" : {
            "node" : "iregex:check-thor",
            "priority" : "3"
         }
      },
      {
         "fields" : {
            "node" : "iregex:check-thor-fulla",
            "priority" : "4"
         },
         "name" : "Filter4",
         "groups" : [
            "network"
         ]
      }
   ]
}

...