[ZBX-24832] API event.get filter issue Created: 2024 Jul 11  Updated: 2024 Jul 11  Resolved: 2024 Jul 11

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: API (A)
Affects Version/s: 7.0.0
Fix Version/s: None

Type: Problem report Priority: Trivial
Reporter: Kristoffer Isaksson Assignee: Zabbix Development Team
Resolution: Won't fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Steps to reproduce:

  1. Send API request and filter clock 
  2. {"jsonrpc":"2.0","method":"event.get","params": {"selectHosts": ["host","name"], "filter": {"clock": "1714395537"}}, "id": 1} 

Result:

{    "jsonrpc": "2.0",    "error": {        "code": -32602,        "message": "Invalid params.",        "data": "Invalid parameter \"/filter\": unexpected parameter \"clock\"."    },    "id": 1} 

Expected:
Success response, this worked with version 6.4



 Comments   
Comment by Alexander Vladishev [ 2024 Jul 11 ]

The event.get method does not support the "clock" field in filters. Instead, you can use the "time_from" and "time_till" parameters.

Generated at Wed Jul 30 03:04:04 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.