Maxime CARMONA, thank you for posting this question.
Based on my understanding, you are trying to send data to "Alert" table in Log Analytics workspace. Reference for this table - Alert table: Log Analytics Workspace. As I understand, you are using log ingestion API for it as mentioned here - Tutorial: Send data to Azure Monitor using Logs ingestion API (Resource Manager templates) - please correct me if I'm wrong.
In this scenario, the sending data to Alert table will not work. Note that the log ingestion API is only applicable for custom tables created and not the default tables available with LA workspace. Note the step 3 mentioned here.
Furthermore, the data in alert table is ingested either by log alerts rules created on logs of this workspace OR SCOM alerts collected through Alert Management solution.
A different way to make it work would be -
- Create custom table as mentioned above and use API to send data to this table.
- Create log based alert rule using query against this new custom table.
- Once the alert gets fired based on the entry in custom table, a new row gets added to alert table.
Hope this helps.
If the answer did not help, please add more context/follow-up question for it, and we will help you out. Else, if the answer helped, please click Accept answer so that it can help others in the community looking for help on similar topics.