-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to run this? #26
Comments
It might be that your AWS defaullt profile is not properly configured. Additionally, the sample code just returns on error.
to
|
Thanks @ghost for the query and @SteveOfficerSeccl for providing some tips. @ghost, in addition to the change suggested by @SteveOfficerSeccl, you may need to make at least one other code change to produce output in your case. The following code is taken verbatim from the "A simple app" code in the // Query the results.
s, err := m.Query(incite.QuerySpec{
Text: "fields @timestamp, @message | filter @message =~ /foo/ | sort @timestamp desc",
Start: start,
End: end,
Groups: []string{"/my/log/group"},
Limit: 100,
}) If you want to just verify that the simple sample app is pulling your logs by having it generate some output, I strongly suggest both dropping the |
I would really like to try this out!
I've initiated a new project - go mod init, pasted the "simple app" code in a main.go file and changed the Groups value to match my Log Group.
I do have a working AWS Shell Environment, as I can run aws s3 ls and I get correct data.
When I run "go run main.go" nothing happens, I don't get any output either.
Can you please give me a bit more newb-friendly instructions?
Thank you!
The text was updated successfully, but these errors were encountered: