# Logs within the repository

**URL:** https://kopia.discourse.group/t/logs-within-the-repository/144
**Category:** Feature Requests
**Created:** [September 26, 2020, 3:37pm UTC](https://kopia.discourse.group/t/logs-within-the-repository/144 "2020-09-26T15:37:47Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![saviodsouza](https://yyz2.discourse-cdn.com/free1/user_avatar/kopia.discourse.group/saviodsouza/32/50_2.png) [@saviodsouza](https://kopia.discourse.group/u/saviodsouza)
#### Post date: [September 26, 2020, 3:37pm UTC](https://kopia.discourse.group/t/logs-within-the-repository/144/1 "2020-09-26T15:37:47Z")

</div>

Hello

Logging can be done to text logs which is seperate from the repository  
I was thinking what if logs are made part of the repository?

This can help in case of a complete disaster or Ransomeware attack. You will loose all logs…  
You begin executing your DR operations… When you come to data restoration you connect to the remote repository, review the logs and begin restoring data from zero

Right now policies are defined inside the repository so…  
Kopia policy show --global (shows all global policies)  
Kopia logs (new command to view or edit logging)

Logs are an important part of audits and losing them may lead to problems.

Integrating logs within the repository may need a repository redesign.

Thank you

---

<div class="post-metadata">

### Author: ![jkowalski](https://yyz2.discourse-cdn.com/free1/user_avatar/kopia.discourse.group/jkowalski/32/3_2.png) [@jkowalski](https://kopia.discourse.group/u/jkowalski)
#### Post date: [September 26, 2020, 10:21pm UTC](https://kopia.discourse.group/t/logs-within-the-repository/144/2 "2020-09-26T22:21:38Z")

</div>

Storing logs within repository is a great idea. I’m curious what is the use of these logs, though? The logs are primarily used for troubleshooting of Kopia itself, do you have other uses in mind?

---

<div class="post-metadata">

### Author: ![saviodsouza](https://yyz2.discourse-cdn.com/free1/user_avatar/kopia.discourse.group/saviodsouza/32/50_2.png) [@saviodsouza](https://kopia.discourse.group/u/saviodsouza)
#### Post date: [September 27, 2020, 5:16pm UTC](https://kopia.discourse.group/t/logs-within-the-repository/144/3 "2020-09-27T17:16:51Z")

</div>

Yes for troubleshooting and backup audits

---

<div class="post-metadata">

### Author: ![saviodsouza](https://yyz2.discourse-cdn.com/free1/user_avatar/kopia.discourse.group/saviodsouza/32/50_2.png) [@saviodsouza](https://kopia.discourse.group/u/saviodsouza)
#### Post date: [October 4, 2020, 9:09am UTC](https://kopia.discourse.group/t/logs-within-the-repository/144/4 "2020-10-04T09:09:12Z")

</div>

Do you feel this can be done in some future versions… An issue can be created on GitHub… Can be a long term plan

I really feel integrating logs within the repository attached to each snapshot would benefit.

---

<div class="post-metadata">

### Author: ![jkowalski](https://yyz2.discourse-cdn.com/free1/user_avatar/kopia.discourse.group/jkowalski/32/3_2.png) [@jkowalski](https://kopia.discourse.group/u/jkowalski)
#### Post date: [October 4, 2020, 2:03pm UTC](https://kopia.discourse.group/t/logs-within-the-repository/144/5 "2020-10-04T14:03:19Z")

</div>

It absolutely can be done. Please file an issue on GitHub.
