Skip to content
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

Incorrect documentation for downloading RDS logs #1835

Closed
cbandy opened this issue Mar 7, 2016 · 7 comments
Closed

Incorrect documentation for downloading RDS logs #1835

cbandy opened this issue Mar 7, 2016 · 7 comments
Labels
bug This issue is a bug.

Comments

@cbandy
Copy link

cbandy commented Mar 7, 2016

Since #1617, the documentation indicates that the following command will download an entire RDS log file. However, it errors without downloading anything.

$ aws --version
aws-cli/1.10.8 Python/2.7.10 Darwin/15.3.0 botocore/1.3.28

$ aws rds download-db-log-file-portion --db-instance-identifier myinstance \
--starting-token 0 --log-file-name error/postgresql.log.2016-02-29-00 \
--output text

Bad starting token: 0
@rayluo
Copy link
Contributor

rayluo commented Mar 7, 2016

I haven't tried to reproduce this yet. But it sounds like relevant to our recent change to CLI pagination token. Perhaps @JordonPhillips can take a look.

@cbandy
Copy link
Author

cbandy commented Mar 7, 2016

I just found a workaround:

$ aws rds download-db-log-file-portion --db-instance-identifier myinstance \
--cli-input-json '{ "Marker": "0" }' --log-file-name error/postgresql.log.2016-02-29-00 \
--output text

@kyleknap
Copy link
Contributor

Yeah this is a regression due to pagination change. We are looking into how to handle these cases.

@gorandev
Copy link

@cbandy Tried your workaround but it just spits 65M and the file ends with "[Your log message was truncated]"

@JordonPhillips
Copy link
Member

@gorandev @cbandy I just merged in a fix, it'll be available in the next release.

@JordonPhillips
Copy link
Member

In the meantime, using --marker '0' should do the trick.

@gorandev
Copy link

@JordonPhillips The --marker '0' doesn't work, guess I'll have to wait for next release! :)

thoward-godaddy pushed a commit to thoward-godaddy/aws-cli that referenced this issue Feb 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue is a bug.
Projects
None yet
Development

No branches or pull requests

5 participants