Ravindra BagaleCourses & study guides मराठी Track your progress

Ravi Sir's Cards › AWS

Script logging

What is a VPC: your own private network inside one AWS Region, example ThreeTierVpc 10.0.0.0/16.

Script logging A log function. To syslog with a tag. Error priority. Read by tag.
Script logging · Download PNG
Read card text

What this card says

Why do we need it?

A log function.

log(){ echo "$(date +%T) $*" >&2; }

What is it?

To syslog with a tag.

logger -t backup done

How to do it

Error priority.

logger -p user.err -t backup fail

Example

Read by tag.

journalctl -t backup

See all AWS revision cards