Can Sumo Logic collect AWS metadata (EC2 tags)?
Currently we don't have support for metadata (EC2 tags) collection from logs.
User can configure "AWS Metadata (Tag) Source for Metrics" if they want to collect the tags from EC2 instances.
KB article with steps to follow: AWS-Metadata-(Tag)-Source-for-Metrics
If the user still wants to collect the tags from the logs they can use a work-around if they are using Ansible which is by performing automation with scripting against the AWS API.
Once they have the tags they can dynamically build the sources.json file, adding the tags where they want in the sourceCategory.
That way when the collector starts up it creates a source with the tags as needed.