Troubleshooting the SIEM agent
This article provides a list of possible issues when connecting your SIEM to Cloud App Security and provides possible resolutions.
Recover missing activity events in Cloud App Security SIEM Agent
Before you proceed, check that your Cloud App Security license supports the SIEM integration you are trying to configure.
If you received a system alert regarding an issue with activity delivery through the SIEM agent, follow the steps below to recover the activity events in the timeframe of the issue. These steps will guide you through setting up a new Recovery SIEM agent that will run in parallel and resend the activity events to your SIEM.
The recovery process will resend all activity events in the timeframe described in the system alert. If your SIEM already contains activity events from this timeframe, you will experience duplicated events after this recovery.
Step 1 – Configure a new SIEM Agent in parallel to your existing agent
In the Cloud App Security portal, go to Security Extensions page.
In the SIEM Agents tab, click on add a new SIEM agent, and use the wizard to configure the connection details to your SIEM. For example, you can create a new SIEM agent with the following configuration:
- Protocol: TCP
- Remote host: Any device where you can listen to a port. For example, a simple solution would to use the same device as the agent and set the remote host IP address to 127.0.0.1
- Port: Any port you can listen to on the remote host device
This agent should run in parallel to the existing one, so network configuration might not be identical.
In the wizard, configure the Data Types to include only Activities and apply the same activity filter that was used in your original SIEM agent (if it exists).
Save the settings.
Run the new agent using the generated token.
Step 2 – Validate the successful data delivery to your SIEM
Use the following steps to validate your configuration:
- Connect to your SIEM and check that new data is received from the new SIEM agent that you configured.
The agent will only send activities in the timeframe of the issue on which you were alerted.
- If data is not received by your SIEM, then on the new SIEM agent device, try listening to the port that you configured to forward activities to see if data is being sent from the agent to the SIEM. For example, run
netcat -l <port>where
<port>is the previously configured port number.
If you are using
ncat, make sure you specify the ipv4 flag
- If data is being sent by the agent but not received by your SIEM, check the SIEM agent log. If you can see "connection refused" messages, make sure that your SIEM agent is configured to use TLS 1.2 or newer.
Step 3 – Remove the Recovery SIEM agent
- The recovery SIEM agent will automatically stop sending data and be disabled once it reaches the end date.
- Validate in your SIEM that no new data is sent by the recovery SIEM agent.
- Stop the execution of the agent on your device.
- In the portal, go to the SIEM Agent page and remove the recovery SIEM agent.
- Make sure your original SIEM Agent is still running properly.
Make sure the status of the SIEM agent in the Microsoft Cloud App Security portal isn't Connection error or Disconnected and there are no agent notifications. The status shows as Connection error if the connection is down for more than two hours. The status changes to Disconnected if the connection is down for over 12 hours.
If you see one of the following errors in the cmd prompt while running the agent, use the following steps to remediate the problem:
|General error during bootstrap||Unexpected error during agent bootstrap.||Contact support.|
|Too many critical errors||Too many critical errors occurred while connecting the console. Shutting down.||Contact support.|
|Invalid token||The token provided isn't valid.||Make sure you copied the right token. You can use the process above to regenerate the token.|
|Invalid proxy address||The proxy address provided isn't valid.||Make sure you entered the right proxy and port.|
After creating the agent, check the SIEM agent page in the Cloud App Security portal. If you see one of the following Agent notifications, use the following steps to remediate the problem:
|Internal error||Something unknown went wrong with your SIEM agent.||Contact support.|
|Data server send error||You can get this error if you're working with a Syslog server over TCP. The SIEM agent can't connect to your Syslog server. If you get this error, the agent will stop pulling new activities until it's fixed. Make sure to follow the remediation steps until the error stops appearing.||1. Make sure you properly defined your Syslog server: In the Cloud App Security UI, edit your SIEM agent as described above. Make sure you wrote the name of the server properly and set the right port. 2. Check connectivity to your Syslog server: Make sure your firewall isn't blocking communication.|
|Data server connection error||You can get this error if you're working with a Syslog server over TCP. The SIEM agent can't connect to your Syslog server. If you get this error, the agent will stop pulling new activities until it's fixed. Make sure to follow the remediation steps until the error stops appearing.||1. Make sure you properly defined your Syslog server: In the Cloud App Security UI, edit your SIEM agent as described above. Make sure you wrote the name of the server properly and set the right port. 2. Check connectivity to your Syslog server: Make sure your firewall isn't blocking communication.|
|SIEM agent error||The SIEM agent has been disconnected for more than X hours||Make sure that you didn't change the SIEM configuration in the Cloud App Security portal. Otherwise, this error could indicate connectivity issues between Cloud App Security and the computer on which you're running the SIEM agent.|
|SIEM agent notification error||SIEM agent notification forward errors were received from a SIEM agent.||This error indicates that you have received errors about the connection between the SIEM agent and your SIEM server. Make sure there isn't a firewall blocking your SIEM server or the computer on which you're running the SIEM agent. Also, check that the IP address of the SIEM server wasn't changed.|
If you run into any problems, we're here to help. To get assistance or support for your product issue, please open a support ticket.