Splunk Cloud Platform

Try to create splunk logging in AWS ECS FARGATE but it doesn't work

gfslogos
New Member

I tried to create splunk logging in AWS ECS FARGATE but it doesn't work.

Please kindly let me know what's wrong with my code below.

Many thanks in advance!

$LogOptions=New-Object "System.Collections.Generic.Dictionary[System.String,System.String]"
$LogOptions.Add('splunk-url',"https://http-inputs-xxxxxx.splunkcloud.com:443")
$LogOptions.Add('splunk-token','xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx')
$LogOptions.Add('splunk-sourcetype','_json')
$LogOptions.Add('splunk-source','fargate')
$LogOptions.Add('splunk-format','raw')
$containerLogConfiguration = New-Object -TypeName Amazon.ECS.Model.LogConfiguration
$containerLogConfiguration.LogDriver = [Amazon.ECS.LogDriver]::Splunk
$containerLogConfiguration.Options = $LogOptions
Labels (1)
0 Karma
Get Updates on the Splunk Community!

See your relevant APM services, dashboards, and alerts in one place with the updated ...

As a Splunk Observability user, you have a lot of data you have to manage, prioritize, and troubleshoot on a ...

Splunk App for Anomaly Detection End of Life Announcement

Q: What is happening to the Splunk App for Anomaly Detection?A: Splunk is officially announcing the ...

Aligning Observability Costs with Business Value: Practical Strategies

 Join us for an engaging Tech Talk on Aligning Observability Costs with Business Value: Practical ...