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

Action trigger - Plugin - Keyword action %L give wrong line #274

Open
petvo78 opened this issue Jan 9, 2023 · 3 comments
Open

Action trigger - Plugin - Keyword action %L give wrong line #274

petvo78 opened this issue Jan 9, 2023 · 3 comments
Labels
bug Pesky little gritter, needs squashing
Milestone

Comments

@petvo78
Copy link

petvo78 commented Jan 9, 2023

When triggering a "plugin" alert, there is a possibility to add Parameters for the alert command parameters.
One of the parameters is "%L = Line number for keyword hit".

Bug

This parameter always returns line number 1 less than triggered line.

For example, alert triggered at line 534, the %L parameter returns 533. It is almost like it confuses the header of the file somehow. Same problem if I set the CSV-columnizer with or without "header"

  • LogExpert Version: 1.9.0
  • Windows Version 10
  • Used Columnizer : CSV
  • Is this version specific or a new problem: No

thanks, Best app in its category!

@Hirogen Hirogen added the bug Pesky little gritter, needs squashing label Jan 10, 2023
@Hirogen Hirogen added this to the Release 1.9.2 milestone Jan 10, 2023
@Hirogen
Copy link
Collaborator

Hirogen commented Feb 9, 2023

The problem is, that the CSV Columnizer currently does not support this feature, because it does not implement the ILogLineColumnizerCallBack that is needed for the ProcessLauncher-Plugin!

Misunderstood the problem, analyzing now

@Hirogen
Copy link
Collaborator

Hirogen commented Feb 9, 2023

could you specify what the trigger was and what you configure for the action?

@petvo78
Copy link
Author

petvo78 commented Feb 16, 2023

Hi, I simply open a cmd.exe window with some coloring, by passing this parameter (which gives wrong line number):
cmd.exe /t:47 /K Title LogExpert - "%T" && Echo %date%-%time% FATAL ERROR at line "%L" && echo Message:: "%C"

@Hirogen Hirogen modified the milestones: Release 1.9.2, Release 1.9.1 Mar 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Pesky little gritter, needs squashing
Projects
None yet
Development

No branches or pull requests

2 participants