Configuring streaming to Event Streams through the UI
Complete the following steps to configure streaming from a Log Analysis instance to an Event Streams instance:
As of 28 March 2024 the IBM Log Analysis and IBM Cloud Activity Tracker services are deprecated and will no longer be supported as of 30 March 2025. Customers will need to migrate to IBM Cloud Logs, which replaces these two services, prior to 30 March 2025. For information about IBM Cloud Logs, see the IBM Cloud Logs documentation.
See Configure streaming for more information on roles required for streaming.
Prereqs
-
Create an Event Streams instance.
a. Log in to the IBM Cloud console.
b. Access the Event Streams service in the Catalog.
c. Select the plan on the service instance page.
d. Enter a name for your service. You can use the default value.
e. Click Create. The Event Streams Getting started page opens.
-
Check the limitations of the service plans. For more information, see Limits and quotas.
Step 1. Create a topic in Event Streams
Complete the following steps to create an Event Streams topic:
-
Log in to your IBM Cloud account.
After you log in with your user ID and password, the IBM Cloud dashboard opens.
-
Click the Menu icon > Resource list.
-
Look for the Event Streams instance that you plan to use, and select it.
-
In the Event Streams instance console, click Manage > Launch Dashboard.
-
Click Create a topic.
-
Enter a topic name and click Next.
-
Enter the number of partitions and click Next.
One or more partitions make up a topic. A partition is an ordered list of messages. Partitions are distributed across the brokers in order to increase the scalability of your topic. You can also use them to distribute messages across the members of a consumer group.
-
Select a Message retention and click Create Topic.
Message retention defines how long messages are retained before they are deleted. If your messages are not read by a consumer within this time, they will be missed.
Step 2. Create credentials to authenticate the logging instance with Event Streams
You need the following information to connect the IBM Log Analysis instance to the Event Streams instance:
- Endpoint URLs to call the APIs
- Credentials for authentication
Complete the following steps to create service credentials that the IBM Log Analysis instance needs to communicate with the Event Streams instance:
-
In the IBM Cloud, click the Menu icon > Resource list.
-
Look for the Event Streams instance that you plan to use, and select it.
-
In the Event Streams console, click Service credentials.
-
Select New credential.
-
Enter a name and select the writer role.
-
Click Add.
To restrict access to 1 topic, complete the following steps:
-
From the menu bar, click Manage > Access (IAM), and select Service IDS.
-
Select the service ID.
-
Select Access policies.
-
Select the policy and modify it to specify the topic.
-
Get credentials using the IBM Cloud CLI and make note of the api key and broker URL values.
Step 3. Configure the connection in Log Analysis to Event Streams
Complete the following steps to configure the connection in Log Analysis to Event Streams:
-
Click the Settings icon . Then select Streaming > Configuration.
-
Select kafka as the streaming type. Then, enter the following information:
-
In the Username field, enter the value token.
-
In the Password field, enter the API key that is associated with the service credential that you want to use to authenticate Log Analysis with Event Streams.
-
In the Bootstrap Server URL section, enter the
kafka_brokers_sasl
values that are listed in the service credential.You must enter each URL as individual entries. If you need to add additional URLs, click Add another URL to add each additional URL.
-
Enter the name of a topic.
-
Click Save.
-
A message will be displayed indicating that sample lines are sent that can be used to verify your connection.
-
Step 4. Verify sample data can reach the topic in Event Streams
To continue, you must verify that sample data can reach the topic in Event Streams.
To verify that sample data is streaming, you can use IBM Cloud Monitoring.
-
Check that you have an instance of Monitoring in the same region as your Event Streams instance. This instance must be configured to collect platform metrics. For more information, see Enabling platform metrics.
-
In the Dashboards section, go to Dashboard templates and select the template IBM Event Streams (Enterprise).
-
Create a copy of the temnplate by clicking Create custom dashboard.
-
Edit the panel Topic bytes in per second.
-
Customize the metric to see data per topic.
-
Check that the resolution is set to 10M.
If you do not see data, do 1 of the following:
- Resend sample logs to verify that sample data is streaming.
- Check my setup to go back to the configuration panel. After you make your changes, retry the verification steps.
If you see data, click YES.
After you provision an instance of Event Streams, the Monitoring dashboard may take up to 15 mins to show.
Step 5. Start streaming
After you verify that sample data is reaching Event Streams, click Start stream.
Streaming may take up to 15 minutes to begin.