mirror of
https://github.com/healthchecks/healthchecks.git
synced 2026-04-25 15:05:49 +03:00
[GH-ISSUE #315] Feature Request: Upload/Attach a small log file #238
Labels
No labels
bug
bug
bug
feature
good-first-issue
new integration
pull-request
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/healthchecks#238
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @skycrash on GitHub (Dec 21, 2019).
Original GitHub issue: https://github.com/healthchecks/healthchecks/issues/315
can upload/attach a log file from my cron routine, inform if was error or something else
@cuu508 commented on GitHub (Jan 7, 2020):
This is already sort of possible: you can make HTTP POST requests to the ping URLs and include arbitrary content in the request body.
Healthchecks stores first 10KB of the request body, so small JSON documents or logfile fragments would work.
Here's an example (not mine, sent in by an user):
It runs certbot and saves output in the $m variable. It then makes a HTTP POST request with the output in request body. As a bonus, it adds
/failto the ping URL if the certbot command returned non-zero exit code.This could be simplified (or extended...) depending on your needs.