"handler filters items must be strings" error

I’m trying to use the following filter (found in the docs: https://docs.sensu.io/sensu-core/1.2/reference/filters/#example-handling-state-change-only) on a Sensu handler:

“filters”: [

{

“state_change_only”: {

“negate”: false,

“attributes”: {

“occurrences”: “eval: value == 1 || ‘:::action:::’ == ‘resolve’”

}

}

}

]

However, I keep getting this error in the server logs: “message”:“handler filters items must be strings”. I can’t figure out what’s wrong with this config, though I feel like I’m probably missing something obvious. Any help would be greatly appreciated.

Thanks.

Never mind - figured it out. I was attempting to define the filter on the handler itself other than referencing an already defined filter.

···

On Wednesday, March 21, 2018 at 10:43:45 AM UTC-7, Jack Watroba wrote:

I’m trying to use the following filter (found in the docs: https://docs.sensu.io/sensu-core/1.2/reference/filters/#example-handling-state-change-only) on a Sensu handler:

“filters”: [

{

“state_change_only”: {

“negate”: false,

“attributes”: {

“occurrences”: “eval: value == 1 || ‘:::action:::’ == ‘resolve’”

}

}

}

]

However, I keep getting this error in the server logs: “message”:“handler filters items must be strings”. I can’t figure out what’s wrong with this config, though I feel like I’m probably missing something obvious. Any help would be greatly appreciated.

Thanks.