Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create links to query results for non DB logging #26

Closed
kosborn opened this issue Oct 21, 2019 · 2 comments
Closed

Create links to query results for non DB logging #26

kosborn opened this issue Oct 21, 2019 · 2 comments
Assignees
Labels
✨ enhancement New feature or request
Milestone

Comments

@kosborn
Copy link
Contributor

kosborn commented Oct 21, 2019

This may be superfluous with #19 coming down the pipeline. Nevertheless, including a configurable link to the actual logging system with the query name included would be convenient. This could be achieved with simple variable substitution in a URL (http://logs.example/search?q=name:${query_name}).

  1. Determine if logging is set to something other than DB.
  2. Add a button to /query/list that goes directly to a the search URL
  3. Add a button or link somewhere on /query/logs/{query_id}

Stretch goal: include some absolute time variables based around the time that the query was initially kicked off so that we can easily get to older queries. Graylog uses ISO 8601 in the URL, so the url template would be: https://graylog.example/streams/000000000000000/search?rangetype=absolute&from=${date_start}&to=${date_plus_1hour}&q=name:${query_name}

@javuto javuto added the ✨ enhancement New feature or request label Oct 22, 2019
@javuto javuto added this to the v0.2.0 milestone Oct 22, 2019
@javuto
Copy link
Collaborator

javuto commented Oct 22, 2019

Thank for creating this issue! This is definitely something I had in mind, and for Splunk the code is there, but I need to test it more. Let's get it done.

@javuto
Copy link
Collaborator

javuto commented Apr 28, 2020

Implemented and merged! Now the links appear in result logs, result logs and queries. They can be fully customizable via Admin Settings.

@javuto javuto self-assigned this Apr 28, 2020
@javuto javuto closed this as completed Apr 28, 2020
CptOfEvilMinions added a commit that referenced this issue Dec 28, 2021
CptOfEvilMinions added a commit that referenced this issue Jun 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants