Feature request: Have a history log in servers. #818

Closed
opened 2025-12-29 16:26:04 +01:00 by adam · 3 comments
Owner

Originally created by @marc-us on GitHub (Mar 30, 2017).

Hi,

I would like to extend the server view with history logging capability.
The usecase is to keep track what happen with server in past.
Like: cabling change, IP assignment, HW expansion etc.

For the beginning I would like to make it available as a free text form. (timestamp, tag, author, description) The tags should be implemented like server roles. In view It will be a separate tab like inventory items.

Later I would like to extend it with automated comments, like when the IP was assigned, changed any field etc. which is now available just on dashboard, without any filtering possibility.

If you need this, I can share with the community. If not I will keep it in our repo.

Regards,
Mark

Originally created by @marc-us on GitHub (Mar 30, 2017). Hi, I would like to extend the server view with history logging capability. The usecase is to keep track what happen with server in past. Like: cabling change, IP assignment, HW expansion etc. For the beginning I would like to make it available as a free text form. (timestamp, tag, author, description) The tags should be implemented like server roles. In view It will be a separate tab like inventory items. Later I would like to extend it with automated comments, like when the IP was assigned, changed any field etc. which is now available just on dashboard, without any filtering possibility. If you need this, I can share with the community. If not I will keep it in our repo. Regards, Mark
adam added the status: duplicate label 2025-12-29 16:26:04 +01:00
adam closed this issue 2025-12-29 16:26:04 +01:00
Author
Owner

@zevlag commented on GitHub (Mar 30, 2017):

This probably dup's #979 and #683

@zevlag commented on GitHub (Mar 30, 2017): This probably dup's #979 and #683
Author
Owner

@marc-us commented on GitHub (Mar 30, 2017):

Not so much, check my modell.py:
class HistoryLog(models.Model):
time = models.DateTimeField(auto_now_add=True, editable=False)
user = models.ForeignKey(User, related_name='history_log', on_delete=models.CASCADE)
device = models.ForeignKey('Device', related_name='history_log', on_delete=models.CASCADE)
role = models.ForeignKey('HitoryRole', related_name='history', blank=True, null=True, on_delete=models.PROTECT)
message = models.TextField(blank=True)

class HistoryRole(models.Model):
name = models.CharField(max_length=50, unique=True)
slug = models.SlugField(unique=True)
color = ColorField()

@marc-us commented on GitHub (Mar 30, 2017): Not so much, check my modell.py: class HistoryLog(models.Model): time = models.DateTimeField(auto_now_add=True, editable=False) user = models.ForeignKey(User, related_name='history_log', on_delete=models.CASCADE) **device = models.ForeignKey('Device', related_name='history_log', on_delete=models.CASCADE)** role = models.ForeignKey('HitoryRole', related_name='history', blank=True, null=True, on_delete=models.PROTECT) **message = models.TextField(blank=True)** class HistoryRole(models.Model): name = models.CharField(max_length=50, unique=True) slug = models.SlugField(unique=True) color = ColorField()
Author
Owner

@jeremystretch commented on GitHub (Mar 30, 2017):

Duplicate of #151

@jeremystretch commented on GitHub (Mar 30, 2017): Duplicate of #151
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#818