Skip to content
This repository has been archived by the owner on Aug 16, 2022. It is now read-only.

CloudWatch Logs Support #1296

Closed
2 tasks done
deep-spaced opened this issue Jul 25, 2022 · 6 comments
Closed
2 tasks done

CloudWatch Logs Support #1296

deep-spaced opened this issue Jul 25, 2022 · 6 comments

Comments

@deep-spaced
Copy link
Contributor

deep-spaced commented Jul 25, 2022

Describe the resource.

https://docs.aws.amazon.com/sdk-for-go/api/service/cloudwatchlogs/

Use Case

I am gathering information about the current account workload and need to know how many log groups and streams are set up. Thank you!

Additional context

The following should be implemented to retrieve information about the log groups and logs in the account:

@bbernays
Copy link
Contributor

bbernays commented Jul 28, 2022

@deep-spaced - Do you think that we should support fetching individual cloudwatch log streams or just the groups? Interested in understanding your use case to see if you think it is a justified (potential) performance hit

@deep-spaced
Copy link
Contributor Author

@bbernays My use case is to figure out all the different pieces of the workload in the account which includes logs. My initial thought was to include streams but the first time I pulled logs AND streams from my test account, I pulled 80k streams. This is just too much noise since I don't care about the individual days, just that there is cloud logging occurring.

In other words, knowing that there are 8 log groups is more important that knowing there are 80 log streams (one stream for each of the 10 prior days using daily log rotation).

Thank you!

@bbernays
Copy link
Contributor

Completely agree. Especially for users that use Lambda, where each ephemeral container creates its own log stream. So I will close the issue for adding cloudwatch streams

@deep-spaced
Copy link
Contributor Author

@bbernays saw your PR in #1321, should I close my PR #1317?

@bbernays
Copy link
Contributor

if you want to incorporate the gen.hcl file that enables automating the generation of the resource via this I am more than happy to close my branch!

@deep-spaced
Copy link
Contributor Author

That's pretty cool, @bbernays! Updated with gen.hcl.

@bbernays bbernays closed this as completed Aug 4, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants