Filtering Journal Entries by Location #10753
jeffmacdonald
started this conversation in
Ideas
Replies: 3 comments 1 reply
-
Journal entries are searchable by Tags, Kind, timeframe and a text Search, maybe custom_fields as well, so it'd make sense to use one of those features. For example, you could have 10 tags for the datacenters and tag journal entries with the datacenter (and any other attributes you might want to search on) to make them easily filterable, failing that you could try and consistently use the DC name in the text of the journal and search for that, but that seems more error prone.
—
Mark Tinberg ***@***.***>
Division of Information Technology-Network Services
University of Wisconsin-Madison
…________________________________
From: Jeff MacDonald ***@***.***>
Sent: Wednesday, October 26, 2022 8:09 AM
To: netbox-community/netbox ***@***.***>
Cc: Subscribed ***@***.***>
Subject: [netbox-community/netbox] Filtering Journal Entries by Location (Discussion #10753)
Hi!
At my work we have ~10 datacenters around the world. When techs arrive they'd like to be able to see a list of servers that we've identified as having issues via the Journal. Currently they just see a giant list.
Thoughts?
—
Reply to this email directly, view it on GitHub<#10753>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AAS7UM5SBAWQLCGXBJHBQTDWFEUP7ANCNFSM6AAAAAARO7KTEM>.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
1 reply
-
replying to myself,
another idea is you could use an API client script or manually put in the search parameters, /api/docs says that assigned_object_type_id and assigned_object_id are searchable fields so you should be able to make a Netbox Report that organizes journal entries by site by looking up all the devices at that site, or an external script that plugs all the device id numbers into assigned_object_id parameters
eg.
/extras/journal-entries/?assigned_object_type_id=21&assigned_object_id=66
you should be able to just keep adding additional assigned_object_id parameters with the list of devices at that site you want to search for, up to the URL limit you've configured in your web service.
—
Mark Tinberg ***@***.***>
Division of Information Technology-Network Services
University of Wisconsin-Madison
…________________________________
From: Mark Tinberg ***@***.***>
Sent: Wednesday, October 26, 2022 8:22 AM
To: netbox-community/netbox ***@***.***>; netbox-community/netbox ***@***.***>
Cc: Subscribed ***@***.***>
Subject: Re: [netbox-community/netbox] Filtering Journal Entries by Location (Discussion #10753)
Journal entries are searchable by Tags, Kind, timeframe and a text Search, maybe custom_fields as well, so it'd make sense to use one of those features. For example, you could have 10 tags for the datacenters and tag journal entries with the datacenter (and any other attributes you might want to search on) to make them easily filterable, failing that you could try and consistently use the DC name in the text of the journal and search for that, but that seems more error prone.
—
Mark Tinberg ***@***.***>
Division of Information Technology-Network Services
University of Wisconsin-Madison
________________________________
From: Jeff MacDonald ***@***.***>
Sent: Wednesday, October 26, 2022 8:09 AM
To: netbox-community/netbox ***@***.***>
Cc: Subscribed ***@***.***>
Subject: [netbox-community/netbox] Filtering Journal Entries by Location (Discussion #10753)
Hi!
At my work we have ~10 datacenters around the world. When techs arrive they'd like to be able to see a list of servers that we've identified as having issues via the Journal. Currently they just see a giant list.
Thoughts?
—
Reply to this email directly, view it on GitHub<#10753>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AAS7UM5SBAWQLCGXBJHBQTDWFEUP7ANCNFSM6AAAAAARO7KTEM>.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
0 replies
-
This almost feels like it would be a report of some sort? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi!
At my work we have ~10 datacenters around the world. When techs arrive they'd like to be able to see a list of servers that we've identified as having issues via the Journal. Currently they just see a giant list.
Thoughts?
Beta Was this translation helpful? Give feedback.
All reactions