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!

Index This | What is broken 80% of the time by February?

December 2025 Edition   Hayyy Splunk Education Enthusiasts and the Eternally Curious!    We’re back with this ...

Unlock Faster Time-to-Value on Edge and Ingest Processor with New SPL2 Pipeline ...

Hello Splunk Community,   We're thrilled to share an exciting update that will help you manage your data more ...

Splunk MCP & Agentic AI: Machine Data Without Limits

Discover how the Splunk Model Context Protocol (MCP) Server can revolutionize the way your organization uses ...