Hi team,
I want to set email & slack alert when error code 405 will occur in NGINX access logs. Splunk should trigger when 405 error code will appear.
Install an app which provides Slack alerting action (I think there's one on splunkbase).
Then set up an alert with a search for 405 codes in your events and set alerting actions to send email and send slack message.