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!

Splunk Mobile: Your Brand-New Home Screen

Meet Your New Mobile Hub  Hello Splunk Community!  Staying connected to your data—no matter where you are—is ...

Introducing Value Insights (Beta): Understand the Business Impact your organization ...

Real progress on your strategic priorities starts with knowing the business outcomes your teams are delivering ...

Enterprise Security (ES) Essentials 8.3 is Now GA — Smarter Detections, Faster ...

As of today, Enterprise Security (ES) Essentials 8.3 is now generally available, helping SOC teams simplify ...