You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 2, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: gdi/get-data-in/connect/aws/aws-logs.rst
+3-389Lines changed: 3 additions & 389 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,395 +7,9 @@ Collect logs from your AWS services
7
7
.. meta::
8
8
:description: Collect logs from your AWS services in Splunk.
9
9
10
-
Log collection is not available in Splunk Observability Cloud. Instead, you can use the Data Manager to send AWS logs to Splunk Platform. Learn how at :new-page:`Onboard AWS in Data Manager <https://docs.splunk.com/Documentation/DM/1.8.2/User/AWSAbout>`. If you have a Log Observer entitlement, you must transition to Splunk Cloud Platform or Splunk Enterprise. Read more at :ref:`lo-transition`.
10
+
Log collection is not available in Splunk Observability Cloud.
11
11
12
-
To query logs, use Log Observer Connect. See more at :ref:`logs-intro-logconnect`.
12
+
Instead, you can use the Data Manager to send AWS logs to Splunk Platform. Learn how at :new-page:`Onboard AWS in Data Manager <https://docs.splunk.com/Documentation/DM/1.8.2/User/AWSAbout>`. To query logs, use Log Observer Connect. See more at :ref:`logs-intro-logconnect`.
13
13
14
-
.. note::
15
-
16
-
If you experience any issues getting logs from AWS, see :ref:`aws-ts-logs`.
17
-
18
-
Which services can you collect logs from?
19
-
============================================
20
-
21
-
You can collect logs from the following services:
22
-
23
-
- Services storing their logs in Cloudwatch. Logs are stored in log groups which start with ``aws/<servicename>``. For example: ``aws/lambda``, ``aws/rds``, or ``aws/eks``
24
-
- WAF CloudWatch logs
25
-
- API Gateway execution logs
26
-
- AWS Glue continuous logs if a default log group name is used
27
-
- Network and Application Load Balancers access logs (classic Load Balancers not supported) from S3
28
-
- S3 access logs from S3
29
-
- Redshift access logs from S3
30
-
- CloudFront access logs from S3
31
-
32
-
Limitations
33
-
-----------------------------------
34
-
35
-
The following restrictions apply:
36
-
37
-
- Log sync can only be activated for a single AWS integration per AWS account. Note the integration can cover multiple services and regions.
38
-
39
-
- Deployment in China or Gov regions requires additional manual steps. See :new-page:`the available CloudFormation templates on GitHub <https://github.com/signalfx/aws-cloudformation-templates>`.
CloudWatch log groups also store logs from unsupported services. If you want to capture those logs, add ``/aws/<namespace>`` to the list of custom namespaces in the integration object. While this option is not available in the Splunk Observability UI, you can easily do it using :ref:`API <aws-logs-api>`, or by adding :ref:`subscription filters <aws-logs-filter>`.
47
-
48
-
.. _aws-logs-api:
49
-
50
-
Collect logs using API
51
-
-----------------------------------
52
-
53
-
To capture logs from unsupported services using the API, follow these steps:
54
-
55
-
1. Use a ``GET`` request to retrieve existing integration object:
Instead of sending all logs to Splunk Observability Cloud, you can forward logs only from selected CloudWatch log groups by adding a subscription filter. To add a filter, follow these steps:
96
-
97
-
#. Install the ``splunk-aws-logs-collector`` lambda using the :ref:`CloudFormation template <aws-cloudformation>`. Don't select ``CloudWatch Logs`` as a data type to ingest in the AWS integration.
98
-
99
-
#. Create a subscription filter to invoke the lambda as a CloudWatch log group subscriber for any log groups you want to forward logs from.
100
-
101
-
.. caution:: Do not name your filters ``Splunk Log Collector``. It's a reserved name for Splunk-managed subscriptions and they'll be removed automatically.
102
-
103
-
Log metadata
104
-
============================
105
-
106
-
Log events from AWS services are enriched with relevant metadata. Some of the metadata is common :ref:`to all services <aws-logs-meta-common>`, while some other is :ref:`service-specific <aws-logs-meta-service>`.
107
-
108
-
.. _aws-logs-meta-common:
109
-
110
-
Common metadata
111
-
-----------------------------------
112
-
113
-
.. list-table::
114
-
:header-rows: 1
115
-
:widths: 30, 40, 40
116
-
117
-
* - Field name
118
-
- Description
119
-
- Example
120
-
121
-
* - awsAccountId
122
-
- The AWS Account ID of the resource that produced the logs
123
-
- awsAccountId: 123456790
124
-
125
-
* - region
126
-
- The AWS region of the resource that produced the logs
127
-
- region: us-east-1
128
-
129
-
* - logForwarder
130
-
- The name and version of ``aws-log-collector`` that sends these logs
0 commit comments