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

download-db-log-file-portion --starting-token=0 doesn't download whole log file #2745

Closed
stephanlindauer opened this issue Aug 2, 2017 · 3 comments
Labels
closing-soon This issue will automatically close in 4 days unless further comments are made. guidance Question that needs advice or information. service-api This issue is due to a problem in a service API, not the SDK implementation.

Comments

@stephanlindauer
Copy link

stephanlindauer commented Aug 2, 2017

when running

  aws rds download-db-log-file-portion \
    --db-instance-identifier pg-db-bla \
    --log-file-name $filename_path \
    --starting-token=0 \
    --output text >> $filename_path

i would expect it to download the whole log file and the docs agree on that assumption:
image

however the log file downloaded via the CLI (in my case) is 199M and doesn't give me the whole day worth of logs (stops at around 8am), while when i use this button in the web-console
image
i get the whole file of 724.6MB with all the logs from 0:00 until 24:00.

awscli version

aws-cli/1.11.129 Python/2.7.12 Linux/4.10.0-28-generic botocore/1.5.92
@joguSD joguSD added api-question closing-soon This issue will automatically close in 4 days unless further comments are made. labels Aug 3, 2017
@joguSD
Copy link
Contributor

joguSD commented Aug 3, 2017

Can you provide debug logs for this? Add the --debug flag.

@kyleknap
Copy link
Contributor

Closing issue due to inactivity. Please reopen once you are able to provide debug logs.

@Nanduyana
Copy link

Nanduyana commented Jun 6, 2018

for logfile in $(aws rds describe-db-log-files --db-instance-identifier rdshost --query DescribeDBLogFiles[0].LogFileName)
do
aws rds download-db-log-file-portion --db-instance-identifier rdshost --log-file-name ${logfile} --starting-token 0 --output text >> ${logfile##*/}.log
done

i have the above setup and this doesnt download the complete log file, we have 160MB log file totally and it has downloaded 150MB only, can you help with this ?

@diehlaws diehlaws added guidance Question that needs advice or information. service-api This issue is due to a problem in a service API, not the SDK implementation. and removed api-question labels Jan 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closing-soon This issue will automatically close in 4 days unless further comments are made. guidance Question that needs advice or information. service-api This issue is due to a problem in a service API, not the SDK implementation.
Projects
None yet
Development

No branches or pull requests

5 participants