×
Community Blog How to Integrate Alibaba Cloud Log Service with Splunk Using the SLS Add-On

How to Integrate Alibaba Cloud Log Service with Splunk Using the SLS Add-On

This article discusses how to integrate Log Service with Splunk using add-ons to ensure compliance, auditing, and other related logs can be ingested into your Security Operation Center.

By Victor Mak, Alibaba Cloud Solution Architect

Overview

The following figure illustrates the Splunk integration architecture:

1

Alibaba Cloud Log Service is a one-stop service for log data. Alibaba Cloud Log Service experiences massive big data scenarios. Log Service allows you to quickly complete the collection, consumption, shipping, query, and analysis of log data without the need for development, which improves the Operation & Maintenance (O&M) efficiency, and builds the processing capabilities to handle massive logs in the DT (data technology) era. For more information, see Log Service (SLS) Production Introduction.

Alibaba Cloud Log Service Add-On for Splunk is an add-on that collects the logs from Alibaba Cloud Log Service (SLS) and sends them to Splunk.

Prerequisites

Before you begin, make sure:

Procedure

  1. Enable Web Application Firewall (WAF) Logging
  2. Download and Install Alibaba Cloud Log Service Add-On for Splunk
  3. Configure the Alibaba Cloud Log Services Add-On
  4. Verify the Results

1. Enable Web Application Firewall (WAF) Logging

Follow these steps to enable Web Application Firewall (WAF) logging in the WAF console:

1. Log on to the Alibaba Cloud WAF console

2. In the upper right corner, click Upgrade to enable WAF Access Log Service.

2

3

3. Navigate to Log Services under Log Management to enable the website you want to enable log services on in the drop-down list.

4

2. Download and Install Alibaba Cloud Log Service Add-On for Splunk

Follow these steps to download and install the add-on in the Splunk console:

1. Log on to the Splunk Enterprise Console.

2. Navigate to the "+ Find More Apps" under Apps

5

3. In the Apps search bar, search Alibaba Cloud Log Service Add-On for Splunk and click Install.

6

4. A restart is required to complete the add-on installation, click Restart Now to continue.

7

3. Configure the Alibaba Cloud Log Service Add-On

1. You should see Alibaba Cloud Log Service Add-On for Splunk is successfully installed. Now, select the app Alibaba Cloud Log Service Add-On for Splunk.

8

2. Navigate to Configuration, click Add under the Account sheet. Fill in the Account Name, Username, and Password. Note: The username and password are configured to correspond to the AccessKey ID and AccessKey Secret.

9

3. Navigate to Inputs, click Create New Input to create a new data input.

10

4. Fill in the necessary parameters:

Parameter Description
Name The unique name for the data input.
Interval Time in seconds to recover the Splunk data input process when it exits unexpectedly.
Index Splunk index
SLS AccessKey This AccessKey is used by pairing an AccessKey ID and an AccessKey Secret.
SLS endpoint SLS service endpoint. For more information, see Service endpoint.
SLS project The project in Log Service. For more information, see Manage a project.
SLS logstore The logstore in log service. For more information, see Manage a Logstore.
SLS consumer group A consumer group name that's used to consume the logstore. To scale, multiple inputs could be configured with the same consumer group name. For more information, see Use consumer groups to consume logs.
SLS cursor start time The start time from which data is consumed. This parameter is valid only when the consumer group is created for the first time. logs will be consumed from the saving point for other times.
SLS heartbeat interval The heartbeat interval in seconds between consumer and SLS server. Unit: second.
SLS data fetch interval If the coming data is not so frequent, please don't configure it too small. Unit: second.

11

4. Verify the Results

After enabling the data inputs, navigate to App Search & Reporting. You will see the logs that are collected from Alibaba Cloud Log Service.

12

The views expressed herein are for reference only and don't necessarily represent the official views of Alibaba Cloud.

0 0 0
Share on

Alibaba Clouder

2,084 posts | 484 followers

You may also like

Comments