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

Support for line template #22

Open
philippfrank opened this issue Jul 8, 2021 · 5 comments
Open

Support for line template #22

philippfrank opened this issue Jul 8, 2021 · 5 comments
Labels
enhancement New feature or request planned

Comments

@philippfrank
Copy link

Team, great work on this -- I appreciate every single thing that could be automated.

We heavily rely on line templates as our log messages contain a number of fields that we usually don't want to see by default in the viewer. To make this provider really useful, I would be able to specify the default line template on a per-view basis, e.g.

resource "logdna_view" "complex_view" {
  name = "complex view"
  aps = ...
  categories = ...
  linetemplate = "[{{ status }}] {{ msg }} (runtime: {{ runtime }})"
}
@mdeltito
Copy link
Member

mdeltito commented Jul 8, 2021

@philippfrank great suggestion! that makes total sense

cc: @alfeng6

@mdeltito mdeltito added the enhancement New feature or request label Jul 8, 2021
@philippfrank
Copy link
Author

Still no update since 1.1.0?

@jschultz-6rs
Copy link

checking in six months later. can you share more details about the plan to implement line template?

@philippfrank
Copy link
Author

philippfrank commented Oct 22, 2024

Hey @gjanco,

I took a look at your API docs [1], and it appears this is a UI-only limitation—so it makes sense that the issue is still open.

Would you be able to connect with the appropriate PM to push this small feature request forward? It would make a significant difference in terms of efficiency. Here’s the situation: when working with long log lines in the viewer, manually typing field names into the template box every time is a hassle. It slows down the workflow and adds unnecessary friction. I use the viewer evey day and every second day it annoys me.

The request is simple: allow users to pre-define a template on the view resource and automatically pre-fill the UI’s template box with that value.

While having this available in Terraform would be ideal, I’d be happy just to see this feature added in any form.

Thanks for considering it!

[1] https://docs.mezmo.com/log-analysis-api#create-view

EDIT: To clarify, I’m aware of the "Persist these settings" option at the bottom of the tool window. However, that only stores the settings in a browser cookie, which is easily lost with routine browser cleaning.

CleanShot 2024-10-22 at 12 30 02@2x

@teriyakichild
Copy link

hey @philippfrank,

You can actually associate a custom line template with a view in our UI. When editing a view, you should see a "Custom %line Template" option like this:
image

For more details, please see: https://docs.mezmo.com/docs/format-log-lines-with--custom-line-templates

Let me know if this helps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request planned
Projects
None yet
Development

No branches or pull requests

5 participants