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
Did you miss .conf21 Virtual?

Good news! The event's keynotes and many of its breakout sessions are now available online, and still totally FREE!