Install Guide
Overview
Microsoft Teams is the collaboration platform included in Microsoft 365. It provides a workflow feature that posts incoming webhook requests to a team channel. Logpresso uses the Microsoft Teams app to send alerts and monitoring results to Teams channels.
This app does not collect logs. It only sends messages: register the workflow webhook URL issued by Teams in a connect profile, then send messages with the ms-teams-send and ms-teams-send-batch query commands.
Scope
Requirements
| Item | Requirement | Note |
|---|---|---|
| Teams account permission | Permission to add a workflow to the target channel (team owner or member) | Without it, workflow creation is blocked |
| Channel type | Standard channel | Private channels cannot be used for webhook workflows |
| Credential to issue | Workflow webhook URL | Issued once when the Teams workflow is created |
| Network access | HTTPS/443 (Sonar to the workflow webhook host, outbound) | A proxy is required in closed networks |
Configure Microsoft Teams
Go to Microsoft Teams and sign in with the account that will create the workflow.
Step 1: Create a team and channel
-
Click Chat on the left, then click New item above the chat and channel list and select New team.
-
In the Create your team dialog, enter Team name, Team type, and First channel name, then click Create.
-
Add members to the team if needed. Click Skip to add them later.
-
Confirm the created team and channel under Teams and channels on the left.
Step 2: Issue a workflow webhook URL
-
Click
More options (...)next to the channel where you want to create the workflow, then select Workflows. -
In the Workflows pane, click View templates.
-
Select the Post to a channel when a webhook request is received template. Type "webhook" in the search box to find it quickly.
-
Under Parameters, select the Team the channel is in and the Channel, then click Save.
-
On the workflow screen, click Copy Webhook link and keep the URL in a safe place. You need this URL when configuring the Logpresso connect profile.
Configure Logpresso
Add a connect profile
Go to System > Connect Profile, click Add, and enter the values below.
| Type | Item | Setting |
|---|---|---|
| Required | Name | A unique name that identifies the connect profile |
| Required | Identifier | A unique identifier used in Logpresso queries. For example, ms_teams |
| Required | Type | Select Microsoft Teams Workflows |
| Required | Workflows | Paste the workflow webhook URL copied in the previous step |
| Optional | Connect timeout | In seconds. 30 by default |
| Optional | Read timeout | In seconds. 60 by default |
| Optional | HTTP proxy | IP:port format, for closed networks that require a proxy |
After filling in the required fields, click Save to add the connect profile.
Post-installation Verification
Run the query below to confirm that message delivery works. Replace the profile value with the identifier of the connect profile you registered.
- Success: the query returns a record with the
profile,subject, andtextfields, and a card message is posted to the connected Teams channel as shown below. - Failure: recheck the workflow URL in the connect profile, whether the Teams workflow is active, and network reachability (HTTPS/443).
To send multiple search results at once, use the ms-teams-send-batch command. See the query command manuals for the options of each command.











