I m just trying to feed the AWS instance data to Splunk, the output for "aws ec2 describe-instances" is in json format and i m placing the result to a variable. now i m trying to call the variable in curl command asset = aws ec2 describe-instances echo $asset curl -k -H "Authorization: Splunk Auth_token" https://splunkcloud.com:8088/services/collector/raw -d {"sourcetype": "some-fields", "fields":'$asset'}" and output seems like curl: (6) Could not resolve host: "disabled" curl: (3) [globbing] unmatched close brace/bracket in column 1 could some one give a better solution?
... View more