Connect with Twilio Segment
On this page
Twilio Segment enables you to collect, unify, and connect your data from various sources, and stream the data (events) into SingleStore to perform analytics and data processing operations.
Prerequisites
-
An active SingleStore deployment with the Data API enabled.
Refer to Enable the Data API for related information. -
Configure the Inbound IP Allowlist of your SingleStore deployment to allow access from Twilio Segment.
Refer to IP Address Allowlisting for related information. -
A Twilio Segment instance with active sources.
Connect to SingleStore from Segment
To connect your SingleStore database,
-
Configure SingleStore as a destination in Segment for a specific source.
-
Configure field mappings and stream data into SingleStore.
-
(Optional) Verify that events are being streamed.
Configure the SingleStore Destination
To configure SingleStore as a destination in Twilio Segment,
-
Log in to your Segment workspace.
-
On the left navigation pane, select Connections > Sources.
-
From the list of Sources, select a source.
-
On the selected source's page, select Add Destination.
-
On the Catalog page, under Destinations, select SingleStore.
You can also search "SingleStore" and select it from the search results. -
On the SingleStore page, select Add destination.
-
Under Setup, enter a name for the destination in the Destination name field.
-
Select Create destination.
The SingleStore destination is created. -
On the Settings tab of your destination, configure the connection to your SingleStore database.
Enter the following information: -
Host: Hostname or IP address of your SingleStore deployment.
Refer to SingleStore Helios Endpoints for related information. -
Port: Port of the SingleStore Data API.
The default is 443
. -
Username: Username of the SingleStore database user with which to connect.
-
Password: Password for the SingleStore database user.
-
Database Name: Name of the SingleStore database to connect with.
-
Table Name: Name of the target table in the specified database.
The default is segment_
.data
-
-
Select Save Changes to save the destination configuration.
Configure Mappings and Stream Data
To configure mappings from source event to destination field and stream data into SingleStore,
-
Select the Mappings tab for your destination.
-
Under Mappings, select New Mapping.
-
Under Set up mapping, select Send Data.
-
On the same page, under Map Fields, configure the source event to destination field mapping.
-
Select Next.
-
Enter a name for the mapping in the Mapping name field.
-
Select Save.
The mapping is saved. -
On the Settings tab for your destination, enable the Enable Destination toggle.
Once the mappings are configured and the destination is enabled, events are streamed to the specified SingleStore table as they are received.
Verify Event Streaming
To verify that events are streamed,
-
Log in to your SingleStore deployment (Cloud Portal).
-
Select <your_
deployment> > Connect > SQL Editor. -
Run the following query(s) to verify that events are streamed to SingleStore:
-- Count the number of events ingested ---- Update the table name to the specified target table --SELECT COUNT(*)FROM segment_data;-- View the 10 most recent ingested events ---- Update the table name to the specified target table --SELECT * FROM segment_dataORDER BY timestamp DESCLIMIT 10;
You can also connect to your SingleStore deployment from a supported third-party client/application and run the query(s).
Disable Event Streaming
To disable event streaming,
-
Select <your_
destination> > Settings. -
Disable the Event Destination toggle.
-
Select Save Changes.
Last modified: August 1, 2025