Journal Searchs by Comments but not Object #4961

Closed
opened 2025-12-29 19:22:39 +01:00 by adam · 2 comments
Owner

Originally created by @davekempe on GitHub (Jun 3, 2021).

NetBox version

v.2.11.3

Python version

3.7

Steps to Reproduce

Other -> Journal Entries
Enter device or virtual machine name in the Search field - no results found.

Searching for contents of comments works just fine.

Expected Behavior

Search should search for objects by name or partial match, so we can do things like link to the journal from other systems.

https://netbox/extras/journal-entries/?q=hostname&created_after=&created_before=&kind=

Then I can link to netbox journal entries for this hostname from Icingaweb, or Confluence for example.

Observed Behavior

No Results Found for Object names.

Originally created by @davekempe on GitHub (Jun 3, 2021). ### NetBox version v.2.11.3 ### Python version 3.7 ### Steps to Reproduce Other -> Journal Entries Enter device or virtual machine name in the Search field - no results found. Searching for contents of comments works just fine. ### Expected Behavior Search should search for objects by name or partial match, so we can do things like link to the journal from other systems. https://netbox/extras/journal-entries/?q=hostname&created_after=&created_before=&kind= Then I can link to netbox journal entries for this hostname from Icingaweb, or Confluence for example. ### Observed Behavior No Results Found for Object names.
adam added the type: bug label 2025-12-29 19:22:39 +01:00
adam closed this issue 2025-12-29 19:22:39 +01:00
Author
Owner

@jeremystretch commented on GitHub (Jun 3, 2021):

The relationship from a journal entry to its assigned object is a generic foreign key. These cannot be efficiently followed for searching. The recommended path is to first search for the object, and then retrieve its associated journal entries.

@jeremystretch commented on GitHub (Jun 3, 2021): The relationship from a journal entry to its assigned object is a generic foreign key. These cannot be efficiently followed for searching. The recommended path is to first search for the object, and then retrieve its associated journal entries.
Author
Owner

@davekempe commented on GitHub (Jun 4, 2021):

OK no worries, I will import the netbox_id as a host variable in Icingaweb, and build the URL from that.

@davekempe commented on GitHub (Jun 4, 2021): OK no worries, I will import the netbox_id as a host variable in Icingaweb, and build the URL from that.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#4961