<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Using webhook alert to send to telegram in Splunk Cloud Platform</title>
    <link>https://community.splunk.com/t5/Splunk-Cloud-Platform/Using-webhook-alert-to-send-to-telegram/m-p/741006#M3645</link>
    <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/308283"&gt;@Raees&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Configure the webhook with the following details:&lt;/P&gt;&lt;P&gt;URL: &lt;A href="https://community.splunk.com/" target="_blank"&gt;https://api.telegram.org/bot&amp;lt;YourBotToken&amp;gt;/sendMessage&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;HTTP Method: POST&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Request Payload:&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;{&lt;BR /&gt;"chat_id": "&amp;lt;YourChatID&amp;gt;",&lt;BR /&gt;"text": "Alert: $result.message$"&lt;BR /&gt;}&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;Trigger Conditions:&lt;/STRONG&gt; Set the conditions under which the alert should trigger.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;Test the Webhook:&lt;/STRONG&gt; Save the alert and test it to ensure that messages are being sent to your Telegram chat.&lt;/P&gt;&lt;P&gt;Here’s an example of how the webhook URL and payload might look:&lt;/P&gt;&lt;PRE&gt;&lt;BR /&gt;{&lt;BR /&gt;"url": "https://api.telegram.org/bot123456789:ABCdefGHIjklMNOpqrSTUvwXYZ/sendMessage",&lt;BR /&gt;"method": "POST",&lt;BR /&gt;"payload": {&lt;BR /&gt;"chat_id": "-987654321",&lt;BR /&gt;"text": "Alert: $result.message$"&lt;BR /&gt;}&lt;BR /&gt;}&lt;/PRE&gt;&lt;P&gt;Make sure to replace &amp;lt;YourBotToken&amp;gt; and &amp;lt;YourChatID&amp;gt; with your actual bot token and chat ID.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 06 Mar 2025 09:37:23 GMT</pubDate>
    <dc:creator>kiran_panchavat</dc:creator>
    <dc:date>2025-03-06T09:37:23Z</dc:date>
    <item>
      <title>Using webhook alert to send to telegram</title>
      <link>https://community.splunk.com/t5/Splunk-Cloud-Platform/Using-webhook-alert-to-send-to-telegram/m-p/741000#M3642</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I am trying to send an alert to Telegram from Splunk using the default webhooks as the Telegram alert action is no longer supported (&lt;A href="https://splunkbase.splunk.com/app/4917" target="_blank" rel="noopener"&gt;https://splunkbase.splunk.com/app/4917&lt;/A&gt;).&lt;/P&gt;&lt;P&gt;Has anyone managed to get it working, there is no documentation on the Splunk site on using the webhook.&lt;/P&gt;&lt;P&gt;I am using the string below that works in a browser, but not in Splunk, so not sure how to format the string.&lt;/P&gt;&lt;P&gt;&lt;A href="https://api.telegram.org/bot#########/sendMessage?chat_id=-########&amp;amp;text=test" target="_blank" rel="noopener"&gt;https://api.telegram.org/bot#########/sendMessage?chat_id=-########&amp;amp;text=test&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Mar 2025 09:15:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Cloud-Platform/Using-webhook-alert-to-send-to-telegram/m-p/741000#M3642</guid>
      <dc:creator>Raees</dc:creator>
      <dc:date>2025-03-06T09:15:46Z</dc:date>
    </item>
    <item>
      <title>Re: Using webhook alert to send to telegram</title>
      <link>https://community.splunk.com/t5/Splunk-Cloud-Platform/Using-webhook-alert-to-send-to-telegram/m-p/741003#M3643</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/308283"&gt;@Raees&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;The URL you provided (&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;A href="https://api.telegram.org/bot#########/sendMessage?chat_id=-########&amp;amp;text=test" target="_blank" rel="noopener"&gt;https://api.telegram.org/bot#########/sendMessage?chat_id=-########&amp;amp;text=test&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;) works in a browser because it’s a simple GET request. However, Splunk’s webhook alert action sends a POST request by default, and it expects a payload rather than just a URL with query parameters.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 06 Mar 2025 09:30:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Cloud-Platform/Using-webhook-alert-to-send-to-telegram/m-p/741003#M3643</guid>
      <dc:creator>kiran_panchavat</dc:creator>
      <dc:date>2025-03-06T09:30:34Z</dc:date>
    </item>
    <item>
      <title>Re: Using webhook alert to send to telegram</title>
      <link>https://community.splunk.com/t5/Splunk-Cloud-Platform/Using-webhook-alert-to-send-to-telegram/m-p/741005#M3644</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/308283"&gt;@Raees&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please check this&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/9.4.0/Alert/Webhooks" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/9.4.0/Alert/Webhooks&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Mar 2025 09:35:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Cloud-Platform/Using-webhook-alert-to-send-to-telegram/m-p/741005#M3644</guid>
      <dc:creator>kiran_panchavat</dc:creator>
      <dc:date>2025-03-06T09:35:11Z</dc:date>
    </item>
    <item>
      <title>Re: Using webhook alert to send to telegram</title>
      <link>https://community.splunk.com/t5/Splunk-Cloud-Platform/Using-webhook-alert-to-send-to-telegram/m-p/741006#M3645</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/308283"&gt;@Raees&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Configure the webhook with the following details:&lt;/P&gt;&lt;P&gt;URL: &lt;A href="https://community.splunk.com/" target="_blank"&gt;https://api.telegram.org/bot&amp;lt;YourBotToken&amp;gt;/sendMessage&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;HTTP Method: POST&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Request Payload:&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;{&lt;BR /&gt;"chat_id": "&amp;lt;YourChatID&amp;gt;",&lt;BR /&gt;"text": "Alert: $result.message$"&lt;BR /&gt;}&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;Trigger Conditions:&lt;/STRONG&gt; Set the conditions under which the alert should trigger.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;Test the Webhook:&lt;/STRONG&gt; Save the alert and test it to ensure that messages are being sent to your Telegram chat.&lt;/P&gt;&lt;P&gt;Here’s an example of how the webhook URL and payload might look:&lt;/P&gt;&lt;PRE&gt;&lt;BR /&gt;{&lt;BR /&gt;"url": "https://api.telegram.org/bot123456789:ABCdefGHIjklMNOpqrSTUvwXYZ/sendMessage",&lt;BR /&gt;"method": "POST",&lt;BR /&gt;"payload": {&lt;BR /&gt;"chat_id": "-987654321",&lt;BR /&gt;"text": "Alert: $result.message$"&lt;BR /&gt;}&lt;BR /&gt;}&lt;/PRE&gt;&lt;P&gt;Make sure to replace &amp;lt;YourBotToken&amp;gt; and &amp;lt;YourChatID&amp;gt; with your actual bot token and chat ID.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Mar 2025 09:37:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Cloud-Platform/Using-webhook-alert-to-send-to-telegram/m-p/741006#M3645</guid>
      <dc:creator>kiran_panchavat</dc:creator>
      <dc:date>2025-03-06T09:37:23Z</dc:date>
    </item>
    <item>
      <title>Re: Using webhook alert to send to telegram</title>
      <link>https://community.splunk.com/t5/Splunk-Cloud-Platform/Using-webhook-alert-to-send-to-telegram/m-p/741008#M3646</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/264857"&gt;@kiran_panchavat&lt;/a&gt;&amp;nbsp;Thank you, this helps, will look up how to send a POST request to Telegram&lt;/P&gt;</description>
      <pubDate>Thu, 06 Mar 2025 09:39:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Cloud-Platform/Using-webhook-alert-to-send-to-telegram/m-p/741008#M3646</guid>
      <dc:creator>Raees</dc:creator>
      <dc:date>2025-03-06T09:39:58Z</dc:date>
    </item>
    <item>
      <title>Re: Using webhook alert to send to telegram</title>
      <link>https://community.splunk.com/t5/Splunk-Cloud-Platform/Using-webhook-alert-to-send-to-telegram/m-p/741009#M3647</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/308283"&gt;@Raees&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sure, Please check.&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;UL&gt;&lt;LI&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Splunk’s webhook alert action sends a POST request to a specified URL.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/LI&gt;&lt;LI&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;The payload is typically in JSON format, and you can customize it using tokens (e.g., &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;$result.field$&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;) to include alert details.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/LI&gt;&lt;LI&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Telegram’s Bot API expects either a GET request with query parameters or a POST request with a JSON body.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&lt;STRONG&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Get Your Telegram Bot Token and Chat ID&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;You already seem to have these:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;UL&gt;&lt;LI&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Bot Token&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;: &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;#########&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt; (replace with your actual token from BotFather).&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/LI&gt;&lt;LI&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Chat ID&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;: &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;-########&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt; (the ID of the group or chat, including the &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;-&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt; for groups).&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&lt;STRONG&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Set Up the Webhook in Splunk&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;UL&gt;&lt;LI&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;In Splunk, go to &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Settings &amp;gt; Alert Actions &amp;gt; Webhook&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt; (or configure it as part of an alert).&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;URL&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;: Use the Telegram API endpoint without query parameters&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;PRE&gt;&lt;SPAN&gt;https://api.telegram.org/bot&amp;lt;your-bot-token&amp;gt;/sendMessage&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Replace &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;lt;your-bot-token&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt; with your actual bot token (e.g., &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;A href="https://api.telegram.org/bot123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11/sendMessage" target="_blank" rel="noopener"&gt;https://api.telegram.org/bot123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11/sendMessage&lt;/A&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;).&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;UL&gt;&lt;LI&gt;&lt;DIV&gt;&lt;STRONG&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Custom Payload&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;: Splunk allows you to define a JSON payload. Telegram expects &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;chat_id&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt; and &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;text&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt; as parameters. Here’s an example payload:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;{
  "chat_id": "-########",
  "text": "Alert from Splunk: $result.message$"
}&lt;/PRE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;UL&gt;&lt;LI&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Replace &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;-########&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt; with your actual chat ID.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/LI&gt;&lt;LI&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;$result.message$&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt; is a placeholder for a field from your search results (adjust based on your data; common tokens include &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;$result.sourcetype$&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;, &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;$result.host$&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;, or &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;$trigger_reason$&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;).&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&lt;STRONG&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Test the Webhook&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;UL&gt;&lt;LI&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Create a test alert in Splunk:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;UL&gt;&lt;LI&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Go to &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Search&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;, run a simple query (e.g., &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;index=_internal | head 1&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;).&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/LI&gt;&lt;LI&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Save it as an alert, set the trigger condition (e.g., number of results &amp;gt; 0), and choose the &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Webhook&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt; action.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/LI&gt;&lt;LI&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Enter the URL and payload as described above.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;UL&gt;&lt;LI&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Trigger the alert and check your Telegram chat for the message.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;NOTE:-&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Ensure the payload is valid JSON and matches Telegram’s API expectations (see &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;A class="" href="https://core.telegram.org/bots/api#sendmessage" target="_blank" rel="noopener noreferrer nofollow"&gt;&lt;SPAN class=""&gt;https://core.telegram.org/bots/api#sendmessage&lt;/SPAN&gt;&lt;/A&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;If &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;$result.message$&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt; doesn’t work, replace it with a static string (e.g., &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;"text": "Test alert"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;) to verify the setup, then adjust the token.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;Example Configuration&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;UL&gt;&lt;LI&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Webhook URL&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;: &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;A href="https://api.telegram.org/bot123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11/sendMessage" target="_blank" rel="noopener"&gt;https://api.telegram.org/bot123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11/sendMessage&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Payload&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;PRE&gt;{
  "chat_id": "-123456789",
  "text": "Splunk Alert: $result.host$ triggered an event at $trigger_time$"
}&lt;/PRE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 06 Mar 2025 09:45:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Cloud-Platform/Using-webhook-alert-to-send-to-telegram/m-p/741009#M3647</guid>
      <dc:creator>kiran_panchavat</dc:creator>
      <dc:date>2025-03-06T09:45:16Z</dc:date>
    </item>
    <item>
      <title>Re: Using webhook alert to send to telegram</title>
      <link>https://community.splunk.com/t5/Splunk-Cloud-Platform/Using-webhook-alert-to-send-to-telegram/m-p/741010#M3648</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/308283"&gt;@Raees&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately the Inbuilt webhook POST sends a payload as below, which isnt possible to change the format of.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{

	"result": {
		"sourcetype" : "mongod",
		"count" : "8"
	},
	"sid" : "scheduler_admin_search_W2_at_14232356_132",
	"results_link" : "http://web.example.local:8000/app/search/@go?sid=scheduler_admin_search_W2_at_14232356_132",
	"search_name" : null,
	"owner" : "admin",
	"app" : "search"
}&lt;/LI-CODE&gt;&lt;P&gt;I think this should be achievable with the&amp;nbsp;&lt;A href="https://splunkbase.splunk.com/app/4146" target="_blank"&gt;https://splunkbase.splunk.com/app/4146&lt;/A&gt;&amp;nbsp;app - although possibly not as an alert action, but could be achieved by adding the necessary commands on the end of your SPL.&lt;/P&gt;&lt;P&gt;I will see if I can work together an example&lt;/P&gt;&lt;P&gt;PLease let me know if this helped by adding karma and/or accepting as an answer if this resolves the issue for you.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Mar 2025 09:45:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Cloud-Platform/Using-webhook-alert-to-send-to-telegram/m-p/741010#M3648</guid>
      <dc:creator>livehybrid</dc:creator>
      <dc:date>2025-03-06T09:45:29Z</dc:date>
    </item>
    <item>
      <title>Re: Using webhook alert to send to telegram</title>
      <link>https://community.splunk.com/t5/Splunk-Cloud-Platform/Using-webhook-alert-to-send-to-telegram/m-p/741013#M3649</link>
      <description>&lt;P&gt;Thanks for the POST details, I don't see how all the info is supposed to be entered as there is only a field for the URL&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Raees_0-1741254823884.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/38034iFABB6AD1C9FBD90D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Raees_0-1741254823884.png" alt="Raees_0-1741254823884.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Mar 2025 09:54:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Cloud-Platform/Using-webhook-alert-to-send-to-telegram/m-p/741013#M3649</guid>
      <dc:creator>Raees</dc:creator>
      <dc:date>2025-03-06T09:54:15Z</dc:date>
    </item>
    <item>
      <title>Re: Using webhook alert to send to telegram</title>
      <link>https://community.splunk.com/t5/Splunk-Cloud-Platform/Using-webhook-alert-to-send-to-telegram/m-p/741020#M3650</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/308283"&gt;@Raees&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As previously mentioned, the Splunk inbuilt webhooks use a POST with a pretty non-configurable output.&lt;/P&gt;&lt;P&gt;You can use&amp;nbsp;&lt;A href="https://splunkbase.splunk.com/app/7450" target="_blank"&gt;https://splunkbase.splunk.com/app/7450&lt;/A&gt;&amp;nbsp;which allows much more customisation.&lt;/P&gt;&lt;P&gt;Here is a working example.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="livehybrid_0-1741257295773.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/38035i6FCE9E9E537BCC72/image-size/medium?v=v2&amp;amp;px=400" role="button" title="livehybrid_0-1741257295773.png" alt="livehybrid_0-1741257295773.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I installed the app and created an alert action as below:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="livehybrid_1-1741257307180.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/38036i2D6AD147B9A687B5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="livehybrid_1-1741257307180.png" alt="livehybrid_1-1741257307180.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Put url as:&amp;nbsp;&lt;A href="https://community.splunk.com/" target="_blank"&gt;https://api.telegram.org/bot&amp;lt;yourToken&amp;gt;/sendMessage&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Payload:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{
"chat_id":"&amp;lt;yourChatID&amp;gt;",
"text": "$result.msg$"
}&lt;/LI-CODE&gt;&lt;P&gt;This will send the value of the "msg" field from Splunk search, obviously you can update this and use more fields if required too.&lt;/P&gt;&lt;P&gt;Please let me know how you get on and consider adding karma to this or any other answer if it has helped.&lt;BR /&gt;Regards&lt;/P&gt;&lt;P&gt;Will&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Mar 2025 10:36:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Cloud-Platform/Using-webhook-alert-to-send-to-telegram/m-p/741020#M3650</guid>
      <dc:creator>livehybrid</dc:creator>
      <dc:date>2025-03-06T10:36:36Z</dc:date>
    </item>
  </channel>
</rss>

