Jack Goslin
12/05/2023, 4:12 PMJack Goslin
12/05/2023, 4:20 PMJack Goslin
12/05/2023, 4:41 PMprefect --no-prompt worker start --pool pool_name > ~/.prefect/prefect_log.log
Jack Goslin
12/05/2023, 4:43 PMapi
handler would also go to the file. I just want to mirror the cloud logs to a file. There must be other logging going on that this logging.yml does not configure.Jack Goslin
12/05/2023, 5:51 PM/etc/docker/daemon.json
first, have your IAM stuff setup for CloudWatch (AWS has lots of confusing docs on this), then set up a log group and stream. Here's what my daemon.json looks like:
{
"log-driver": "awslogs",
"log-opts": {
"awslogs-region": "us-east-1",
"awslogs-group": "Prefect-Logs",
"awslogs-stream": "EC2-Prefect-Docker"
}
}
Jack Goslin
12/05/2023, 5:54 PMworker start
command to a file and have the CloudWatch agent pick it up.