如何为cloudformation输入多个日志组

时间:2016-09-12 18:39:51

标签: json amazon-web-services amazon-cloudformation amazon-cloudwatch

所以我有一个云形成堆栈,AWS的这个https://aws.amazon.com/blogs/aws/cloudwatch-logs-subscription-consumer-elasticsearch-kibana-dashboards/?adbsc=startups_20150803_50195176&adbid=628221613226332160&adbpl=tw&adbpr=168826960堆栈的一点修改版本。问题是我想将多个日志组流式传输到ES和kibana。

我认为逻辑解决方案是将Type:String更改为Type:CommaDelimitedList:

    "LogGroupName": {
  "Description": "The CloudWatch Logs log group to use as the source for the subscription that feeds the Elasticsearch cluster",
  "Type": "String",
  "Default": ""
},

但是这给了我一个错误,即LogGroupName类型必须是一个字符串。为什么这种方法不起作用?

1 个答案:

答案 0 :(得分:1)