I use python requests, above is a simple function that can be used to close notables:
# STATUS
# 0 - Unassigned
# 1 - New
# 2 - In Progress
# 3 - Pending
# 4 - Resolved
# 5 - Closed
# URGENCY
# informational, low, medium, high, critical
status = 5
urgency = 'low'
comment = 'Closed by Python'
new_owner = 'admin'
rule_uids = EVENT_ID
def update_notable(status, urgency, comment, new_owner, rule_uids):
status = status
urgency = urgency
comment = comment
new_owner = new_owner
rule_uids = rule_uids
url = 'https://SPLUNK_SERVER:8089/services/notable_update'
params = {'ruleUIDs': rule_uids, 'comment': comment, 'status': status, 'urgency': urgency, 'newOwner': new_owner}
response = requests.request(method='POST', url=url, data=params, verify=False,
auth=HTTPBasicAuth('USER', 'PASSWORD'))
return response.text
Also, this link has some useful python scripts that can help you: https://www.splunk.com/en_us/blog/tips-and-tricks/how-to-edit-notable-events-in-es-programatically.html
... View more