All Apps and Add-ons

Splunk Add-on for Amazon Web Services: How to configure sync frequency of newly created EC2 instances?

specora
Explorer

Where can I configure the frequency in which Splunk will sync newly created EC2 instances? F.Y.I Using the Splunk Add-on for Amazon Web Services.

0 Karma

pchen_splunk
Splunk Employee
Splunk Employee

There is an "interval" parameter in all modular input in Addon. You can see it from input setup dialog.

0 Karma

specora
Explorer

I set the "interval" param for [aws_cloudwatch:...] stanza under Splunk_TA_aws/local/inputs.conf. Not sure if this is the same interval param you speak of.

0 Karma

pchen_splunk
Splunk Employee
Splunk Employee

For cloudwatch input, there are two parameters related.
1. period: what's the interval of AWS log the data
2. polling_interval: the interval splunk consume the data

The polling_interval should be a multiplier of period.

0 Karma

specora
Explorer

Both these are set to 300. However newly created EC2 instances take quite some time to show up in Splunk, upwards of hours. Based on my inputs.conf, they should show up in minutes.

[aws_cloudwatch://************]
aws_account = ***********
aws_region = us-west-1,us-west-2,us-east-1
index = main
metric_dimensions = [{"InstanceId": [".*"]}]
metric_names = ["CPUCreditBalance", "CPUCreditUsage", "CPUUtilization", "StatusCheckFailed_Instance"]
metric_namespace = AWS/EC2
period = 300
polling_interval = 300
sourcetype = aws:cloudwatch
statistics = ["Minimum", "Maximum", "Sum", "Average"]
0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...