All Apps and Add-ons

Push Cloudwatch metrics source type

AnanthaS
Path Finder

I am able to push cloudwatch metrics by selecting streaming and selecting json as datatype of output. Additionally I used inbuilt lambda transformation for cloudwatch metrics. I selected source type aws:firehose:json. The data is seen in Splunk as json data which is not searchable. How to get the data in searchable format?

Labels (2)
0 Karma

marnall
Motivator

When you say "seen in Splunk as json data which is not searchable", do you mean the data is not at all appearing in Splunk, or it is possible to use search to retrieve the logs but they do not extract fields?

Splunk handles JSON logs straightforwardly so if the logs do reach splunk in proper JSON format then it should have no problem indexing the logs and even automatically extracting fields.

0 Karma

AnanthaS
Path Finder

Right, it doesn't extract the fields but the data is available. Using JSON functions possibly the data can be queries but that is cumbersome.

0 Karma

AnanthaS
Path Finder

Thanks for your reply on this. We were seeing JSON array, which Splunk failed to recognize and make it searchable.

We were using Lambda for transformation and one change to Firehose configuration from "Raw" to "Event" for the field "Splunk End Point" helped resolve the issue. 

Also, I change the source type "aws:cloudwatch" to based on the tests written for lambda.

https://github.com/splunk/splunk-aws-cloudwatch-streaming-metrics-processor/blob/main/SplunkAWSCloud... 

It will be good if the documentation - Source types for the Splunk Add-on for AWS - Splunk Documentation

also can be updated to say the source type "aws:cloudwatch" to be used if Lambda function - splunk-aws-cloudwatch-streaming-metrics-processor is used for streaming.

This request can be closed with above comments. 

0 Karma
Get Updates on the Splunk Community!

Technical Workshop Series: Splunk Data Management and SPL2 | Register here!

Hey, Splunk Community! Ready to take your data management skills to the next level? Join us for a 3-part ...

Spotting Financial Fraud in the Haystack: A Guide to Behavioral Analytics with Splunk

In today's digital financial ecosystem, security teams face an unprecedented challenge. The sheer volume of ...

Solve Problems Faster with New, Smarter AI and Integrations in Splunk Observability

Solve Problems Faster with New, Smarter AI and Integrations in Splunk Observability As businesses scale ...