summaryrefslogtreecommitdiffstats
path: root/examples/legacy-filter/full-filter.json
blob: 5d89277831b845a93a31afc24beed3b1bbc8b5b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
/*
  NOTE: this is a JSON file with comments. You might not be able to parse it, depending on the implementation!

  This is the full filter style, that the old EventDB Cronk supported.

  The old monitoring integration *did not* support the exact filter.
*/
{
  "hostFilter": {
    "include_pattern": "test",
    "include_pattern_type": "exact",
    "exclude_pattern_type": "regexp",
    "exclude_pattern": "aa.*b",
    "include_set": [
      "test"
    ],
    "exclude_set": []
  },
  "programFilter": {
    "include_pattern": false,
    "include_pattern_type": "disabled",
    "exclude_pattern": "test",
    "exclude_pattern_type": "contains",
    "include_set": [
      ""
    ],
    "exclude_set": []
  },
  "messageFilter": {
    "items": [
      {
        "type": "exc",
        "message": "onlydebug",
        "isRegexp": false
      },
      {
        "type": "inc",
        "message": "needthis.*",
        "isRegexp": true
      }
    ]
  },
  "misc": {
    "hideAck": true
  },
  "sourceExclusion": [
    "2",
    "3",
    "4"
  ],
  "priorityExclusion": [
    "5",
    "6",
    "7"
  ],
  "facilityExclusion": [
    "8",
    "9",
    "10",
    "11"
  ],
  "timespan": {
    "from": 1502362200,
    "to": 1502362200
  },
  "display": {
    "order": {
      "field": "created",
      "dir": "desc"
    },
    "group": {
      "field": null
    },
    "count": "id",
    "limit": 200
  }
}