Skip to main content
jankit6
Staff
Staff
February 22, 2024

Troubleshooting Tip: How to fix HMAC Authentication Error for FortiSOAR Splunk Add-on

  • February 22, 2024
  • 0 replies
  • 559 views
Description This article describes how to fix the 401 HMAC authentication error when using the Splunk Add-on to create records in FortiSOAR.
Scope FortiSOAR.
Solution

When attempting to create an alert in FortiSOAR using the Splunk Add-On, it consistently shows a 401 HMAC Authentication Error even after regenerating a new Public/Private Key Pair.

 

Many times, the time between FortiSOAR and Splunk does not remain constant, which could be due to an NTP sync issue

 

Error Logs: 

 

xxxx-xx-xx 07:18:14,374 INFO pid=258830 tid=MainThread file=connection.py:__get_headers:135 | timestamp:xxxx-xx-xx 03:18:13
2023-12-15 07:18:14,508 INFO pid=258830 tid=MainThread file=connection.py:postUrl:174 | End post url
2023-12-15 07:18:14,508 INFO pid=258830 tid=MainThread file=connection.py:_checkRequest:159 | Start check request
2023-12-15 07:18:14,508 ERROR pid=258830 tid=MainThread file=connection.py:_checkRequest:163 | Status Code: 401
2023-12-15 07:18:14,509 ERROR pid=258830 tid=MainThread file=connection.py:_checkRequest:164 | Returned Data: {"message":"An authentication exception occurred."}

 

Verify the Date and time on both environments (Splunk and FortiSOAR) and match the time manually or sync them with the NTP server.

 

timedatectl

timedatactl set-ntp true

Thought Leadership. Security Summit. Thursday, November 12th, PGA National Resort, Palm Beach Gardens, FL.
Thought Leadership. Security Summit. Thursday, October 8th. Disney's Grand Californian Hotel & SPA, Anaheim, CA.
Security Operations Summit: Modernize SecOps. Operate AI-Native.AMER: November 4 | 9:00 AM PST. India and SAARC: November 5 | 10:00 AM IST. EMEA: November 5 | 10:30 AM CET. APAC: November 5 | 11:00 AM SGT