mirror of
https://github.com/louislam/uptime-kuma.git
synced 2026-03-02 22:57:00 -05:00
Export UP/DOWN Log's of the Host. #1863
Labels
No labels
A:accessibility
A:api
A:cert-expiry
A:core
A:dashboard
A:deployment
A:documentation
A:domain expiry
A:incidents
A:maintenance
A:metrics
A:monitor
A:notifications
A:reports
A:settings
A:status-page
A:ui/ux
A:user-management
Stale
ai-slop
blocked
blocked-upstream
bug
cannot-reproduce
dependencies
discussion
duplicate
feature-request
feature-request
good first issue
hacktoberfest
help
help wanted
house keeping
invalid
invalid-format
invalid-format
question
releaseblocker 🚨
security
spam
type:enhance-existing
type:new
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/uptime-kuma#1863
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 @Gururaj08 on GitHub (Feb 7, 2023).
⚠️ Please verify that this feature request has NOT been suggested before.
🏷️ Feature Request Type
New Monitor, UI Feature
🔖 Feature description
All the UP/DOWN logs need to be exported or Downloaded.

✔️ Solution
All the UP/DOWN logs need to be exported or Downloaded.
❓ Alternatives
All the UP/DOWN logs need to be exported or Downloaded.
📝 Additional Context
All the UP/DOWN logs need to be exported or Downloaded.

@Gururaj08 commented on GitHub (Feb 7, 2023):
const logs = [
{ timestamp: '2022-01-01T00:00:00.000Z', message: 'Log message 1' },
{ timestamp: '2022-01-01T00:01:00.000Z', message: 'Log message 2' },
{ timestamp: '2022-01-01T00:02:00.000Z', message: 'Log message 3' },
];
const exportLogs = (logs) => {
let csvContent = 'data:text/csv;charset=utf-8,';
csvContent += 'timestamp,message\n';
logs.forEach(function(log) {
csvContent +=
${log.timestamp},${log.message}\n;});
const encodedUri = encodeURI(csvContent);
const link = document.createElement('a');
link.setAttribute('href', encodedUri);
link.setAttribute('download', 'logs.csv');
document.body.appendChild(link);
link.click();
};
exportLogs(logs);
@FaridGitStart commented on GitHub (Feb 15, 2023):
@louislam I want to contribute on this feature-request and add the feature for exporting logs. Just wanted to inform you before working on the feature.
@githubliuyang777 commented on GitHub (May 26, 2023):
@louislam in our teams, we need to count all the up/down times of the host every month, is there any plans to add some api for users dump up/down times log
@CommanderStorm commented on GitHub (May 26, 2023):
@FaridGitStart
Please read the contribution guide at https://github.com/louislam/uptime-kuma/blob/master/CONTRIBUTING.md

I think a good way to implement this is to add a checkbox here:
=> adding a checkbox here if logs should be included should be an okay design decision.
If you think another option is better or notice other problems with this approach, please feel free to reach out
@CommanderStorm commented on GitHub (May 26, 2023):
@githubliuyang777
We use 👍🏻 to gauge interest in features.
Please see #118 and #2693
Also see https://pypi.org/project/uptime-kuma-api/ => this should be eazy to implement.
Note: This is an external Tool => no guarantees in any way.
@CommanderStorm commented on GitHub (Dec 3, 2023):
@Gururaj08
We are consolidating duplicate issues a bit to make issue management easier.
I think, we should track this issue in #1101 as there is no functional difference (I have integrated your screenshot)
⇒ I am going to close this as a duplicate.