Skip to content

awsputlogs is a tool to upload JSON and string logs to the AWS CloudWatch Logs easily.

License

Notifications You must be signed in to change notification settings

x-color/awsputlogs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

awsputlogs

awsputlogs is tool to upload JSON and string logs to the AWS CloudWatch Logs easily.

Usage

Upload log events

$ awsputlogs --log-group <LOG GROUP NAME> "sample log message1" "sample log message2"

Upload log events to specified log stream

$ awsputlogs --log-group <LOG GROUP NAME> --log-stream <LOG STREAM NAME> "sample log message1"

You should use '--logs-file' option if you want to upload JSON logs or many logs.

$ awsputlogs --log-group <LOG GROUP NAME> --logs-file <FILE PATH>

You must write a file with the following formats.

Upload JSON logs

[
    {
        "level": "info",
        "message": "Start Server"
    },
    {
        "level": "error",
        "message": "Failed to Start Server"
    }
]

Upload string logs

[
    "[INFO] Start Server",
    "[ERROR] Failed to Start Server"
]

Upload JSON and string logs

[
    {
        "level": "info",
        "message": "Start Server"
    },
    "[ERROR] Failed to Start Server"
]

LICENCE

MIT

About

awsputlogs is a tool to upload JSON and string logs to the AWS CloudWatch Logs easily.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published