Git Product home page Git Product logo

logexpert's Issues

Feature request: a regexp columnizer

I have a feature request: implement a Regular expression columnizer.

For me, the main drawback of columnizers in LogExpert is that you have to set up a dev environment and compile them. And always recompile them when you need to slightly adjust the line format.

The Regular expression columnizer would simply take a regular expression as a user input and apply it to each line of a log file while columnizing it.

I would say such columnizer would be able to replace all other columnizers and mainly allow the user to quickly completely change the line format.

Custom Columnizer

Hi, is there a way to create a columizer for arbitrary formats? I couldn't parse IIS logs with the default columnizers. In that case data is separated by spaces.

RegExec Columnizer

It would be great to have a working RegEx based Columnizer plugin. The existing one from the old Codeplex version does not work and creates an undhandled error:

logexpert regex columnizer
unhandled error with old plugin

.lxp file write permission error occurred during network files

image

Got error file write permission error occurred during network files while on save session or exitted the program. But lxp file is saved. I configured my .lxp file is near the "log" directory where is under <USER_DIR>\AppData\Roaming\LogExpert

Regards...

Indicate start/end of file while scrolling

Feature

When using multiple files, the scrollbar doesn't refresh the status bar with the current "visible" log, because it assumes the current file is actually the file of the current selected line.

It could have some kind of graphical indicator to show the end of one file and the start of another while scrolling.

Remember last windows position and size

Whenever I start LogExpert it starts with a small size and centralized on the screen.

Can there be an option to remember the last windows size and position on screen (and re-establish it on next launch)?

Thx

Duplicate lines

  • select one line
  • select another line
    -> the content of previous line is shown

Scrolling corrupts / stops view updates

When scrolling quickly through a long file, the view stops showing updates and just remains fixed on some "corrupted mess":

image

This makes it very difficult to scroll through long files and find anything, sadly making the application almost useless.

getting error message

this message was posted on another issue related to memory leak 'zarunbal' asked to opend a new issue for this one. here it is:

I'm getting this message all the time

Value of '45000' is not valid for 'Value'. 'Value' should be between 'minimum' and 'maximum'.
Parameter name: Value

ArgumentOutOfRangeException
at System.Windows.Forms.Control.MarshaledInvoke(Control caller, Delegate method, Object[] args, Boolean synchronous)
at System.Windows.Forms.Control.Invoke(Delegate method, Object[] args)
at LogExpert.LogWindow.OnProgressBarUpdate(ProgressEventArgs e)
at LogExpert.LogWindow.EnterLoadFileStatus()
at LogExpert.LogWindow.LoadFile(String fileName, EncodingOptions encodingOptions)
at LogExpert.LogWindow.ReloadNewFile()
at System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object obj)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry tme)
at System.Windows.Forms.Control.InvokeMarshaledCallbacks()

Copying lines from the main view is truncated at 20000 characters

When copying lines from the main view the copied lines are truncated at 20000 characters. This can be reproduced by pasting the line into Notepad++ and checking the number of characters.

My expected behaviour: The full line is copied or some indication that the line could not be copied is shown.

Thanks.

Version: 1.6.7

Frequent black screen when log is updated

Bug

Very often I see the log turned to black after an update. It only redraws the screen after using the scroll bar.

  • LogExpert Version 1.6.7

  • Windows Version 10

  • Local File

  • Used Columnizer Default

  • Continous appending log file? Yes

  • Size of the file ~ 40MB

  • Screenshot
    image

Problems with SFTP Plugin

Hi gents,

i'm having some issues with the SFTP plugin.
i've been a user of the older 1.5 /5493 version and suddenly the plugin i used mostly just stopped working throwing a use error message, when i try to reach a machine.

Initially the issue was due to to chilkadotnet plugins, and every time .net would change in my laptop i would need to update it.

Now again i'm facing that issue, but because with the plugin replacement i was not able to sort out my issue, i came to find out a new version of LE (v1.6.7) has been released and i decided to try it.

My main problem now is no matter what plugin dll file i copy inside the plugins folder such are not used my the main application, even i have already un-comment the tag lines in the LogExpert.exe.config file.

Can you assist?
If some logs would be required let me know.

Cheers.
FP

Default Encoding Setting without Effect

The Default Encoding set under Tools->Settings->ViewSettings seams to be without effect. At least I cant decode an utf8 log with german "Umlaute" (äöü) correctly. That worked fine before.

Splitted from Issue #6 and user @tstreibl

Highlighting not correctly applied when the line contains a tab \t character

Highlighting is not correctly applied when the line contains a tab \t character. It seems that for each \t character present on the line, the highlighting is shifted forward by one character.

For instance, with this highlighter:

image

I get this result:

image

Here's the file content:

Contains 0 tab - highlight - blabla
\tContains 1 tab - highlight - blabla
\t\tContains 2 tabs - highlight - blabla
\t\t\tContains 3 tabs - highlight - blabla
\t\t\tContains 3 tabs and 1 more here \t- highlight - blabla
         

Notes:

  • LogExpert Version: current master branch (2018-04-18 15h55)
  • Windows Version: Windows 10
  • Local file and network file (SFTP plugin)
  • Used Columnizer: none

Plugins cannot be loaded

Important questions

  • LogExpert Version: 1.6.10
  • Windows Version: Windows 10 Pro, Version 1709, OS Build 16299.371
  • Lokal file or Network: Local
  • Used Columnizer: Any plugin

Plugins are not loaded, the log contains a message like this for every plugin:

2018-04-17 09:52:49.3243|ERROR|LogExpert.PluginRegistry|C:\Program Files\LogExpert\plugins\CsvColumnizer.dllCould not load file or assembly 'CsvColumnizer, Version=1.6.10.0, Culture=neutral, PublicKeyToken=f1d21f1ddfe64bb0' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515) System.IO.FileLoadException System.IO.FileLoadException: Could not load file or assembly 'CsvColumnizer, Version=1.6.10.0, Culture=neutral, PublicKeyToken=f1d21f1ddfe64bb0' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)
File name: 'CsvColumnizer, Version=1.6.10.0, Culture=neutral, PublicKeyToken=f1d21f1ddfe64bb0' ---> System.IO.FileLoadException: Could not load file or assembly 'file:///C:\Program Files\LogExpert\plugins\CsvColumnizer.dll' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)
File name: 'file:///C:\Program Files\LogExpert\plugins\CsvColumnizer.dll' ---> System.NotSupportedException: An attempt was made to load an assembly from a network location which would have caused the assembly to be sandboxed in previous versions of the .NET Framework. This release of the .NET Framework does not enable CAS policy by default, so this load may be dangerous. If this load is not intended to sandbox the assembly, please enable the loadFromRemoteSources switch. See http://go.microsoft.com/fwlink/?LinkId=155569 for more information.
   at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
   at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
   at System.Reflection.RuntimeAssembly.InternalLoadFrom(String assemblyFile, Evidence securityEvidence, Byte[] hashValue, AssemblyHashAlgorithm hashAlgorithm, Boolean forIntrospection, Boolean suppressSecurityChecks, StackCrawlMark& stackMark)
   at System.Reflection.Assembly.LoadFrom(String assemblyFile)
   at LogExpert.PluginRegistry.ColumnizerResolveEventHandler(Object sender, ResolveEventArgs args)
   at System.AppDomain.OnAssemblyResolveEvent(RuntimeAssembly assembly, String assemblyFullName)


   at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
   at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
   at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean forIntrospection)
   at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
   at System.Reflection.Assembly.Load(String assemblyString)
   at LogExpert.PluginRegistry.LoadPlugins()

The message suggests that a DLL is loaded from a network location, but I fail to see what location that would be. I have simply copied the LogExpert folder into the local "Program Files" folder.

Complete log:
logexpert.log

Feature request: Visually mark positions of lines highlighted by Highlighter on scrollbar

I have a feature request: it would be useful if LogExpert could mark scrollbar with visual indicators of lines highlighted using Highlighter. You may see such feature in Visual Studio IDE or Chrome browser for example - when you search for a text on a page, positions of searched term occurrences are visually marked on the scrollbar.

It doesn't have to necessarily be marked directly on the scrollbar, for example Glogg has a separate vertical bar right next to the scrollbar for this purpose.

BTW LogExpert is the best application for working with logs I have found. And I have tried several various applications. Keep going! :)

Feature request: word wrap

Sometimes, it would be useful to have a possibility to enable the word wrap so I don't have to use the horizontal scrollbar.

Copying lines from "Filter window" is truncated

When copying a filtered line from the "Filter window" it is truncated to the text visible in the "Filter window" and therefore has 4678 characters including truncation marker "..." excluding the line number in front of it.

My expectation: When copying to clip board the whole line is copied and not just the visible part.

Thanks.

Version: 1.6.7

Feature Request: Grouping tabs

I've got three servers, each of which is producing three log files, that I have to watch. As a consequence, I now have nine tabs open, which works, but isn't particularly nice to navigate, and to watch. Thus I would like to have the ability to join the three log files for one server into a single group "server A", "server B", or "server C", each of which containing three subtabs with the respective log file.

Blank line after each file change

By watching the out.log file generated by this simple python script results in empty line after each update

import time

out = open("out.log", "w")

while 1:
	out.write("%s\n" % time.time())
	out.flush()
	time.sleep(1)

Switching to "Use legacy file reader (slower)" fixes this problem.

image

Allow logfile(s) folder specification as relative path

When I goto settings---Persistence---->file location
I can specify where to put the logfiles.

Here I miss an option here to specify a relative path to the installation directory.

I want to specify a target folder which is a brother of the logexpert installation folder with the relative path definition "..\mylogs\ (mind the leading double dots)

Could you add this in the next release?

Thx

Duplicated lines

I just upgraded to 1.6.4 and now the following happens:

  1. Open file in LogExpert (by double-clicking the file in Windows Explorer)
  2. Result: It seems to load correctly.
  3. Wait a few (~13) seconds without doing anything.
  4. Problem: Suddenly it switches to only showing one line duplicated over and over. Scrolling down to line 500, it switches to a different line duplicated over and over, and so on.

Bug - typo

Under options the selection reads "Hilighting and triggers..."
Should be "Highlighting and triggers..."

Could not load file or assembly LumenWorks.Framework.IO

When I try to select the columnizer CSV columnizer, I get the following exception:

Could not load file or assembly 'LumenWorks.Framework.IO, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. A strongly-named assembly is required. (Exception from HRESULT: 0x80131044)

FileLoadException
   at CsvColumnizer.CsvColumnizer.Selected(ILogLineColumnizerCallback callback)
   at CsvColumnizer.CsvColumnizer.Configure(ILogLineColumnizerCallback callback, String configDir)
   at LogExpert.FilterSelectorForm.configButton_Click(Object sender, EventArgs e)
   at System.Windows.Forms.Control.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ButtonBase.WndProc(Message& m)
   at System.Windows.Forms.Button.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

The DLL LumenWorks.Framework.IO.dll is present in the plugins directory and has the version 3.0.0.0.

The LogExpert version is 1.6.7 (portable from an archive, i.e. not installed) running on Windows 7 Ultimate 64-bit. The file is from a local drive.

The log file doesn't contain more information than you may find in the exception I posted.

memory leak

I'm a big fan of this application. but i encountered a very annoying bug.
using version 1.6.6. if I leave LogExpert open for a log time it increases the memory size used and eventually will make the computer work very slow.

thanks

Better "highlighting" of the selected lines.

When I select a line, it becomes white on blue background.
I therefore loose any highlighting set.
It is also a bit strong on the eyes.

Could you allow as an option to have the selection simply surrounced by a rectangle or drawing a line for the top and bottom lines of the "row".

Then, you may have a multi line selection which is why I think the "rectangle" approach might be nicer.

Thanks for taking over this project.

License file

Would be nice if you also mention the original author (which is me) in the license file, even tough I'm not active anymore in this project.

Btw: MIT license requires to keep the copyright notice. So your "edit" is a violation. :)

CSV Columnizer Missing

Hello,

first of all thanks a lot for upgrading this super tool to .NET 4.0.

Compared to the previous version the SV Columnizer seems to be missing in the Options-> Columnizer Menue. I'm not good at regex so it would be glad it you could bring back this feature.

Would be extreamly happy if those two issues could be fixed.

Edit [Zarunbal]: moved the encoding issue to #7

Crash when dragging other stuff over logwindow

Suggest checking for null after
object data = e.Data.GetData("Shell IDList Array");
in LogWindow_DragOver(object sender, DragEventArgs e) (LogTabWindow.cs)

e.g.:
add
if (data == null) return; // prevent other dragged items crashing

Should I attempt to commit this to Development branch and raise pull request?

Trojan detected by Windows Defender in latest release

Bug

Release Version 1.6.10 is continually detected as a trojan by Windows Defender
I hope this is a false positive, however more action is required by the developer to ensure this.

Details

  • LogExpert Version 1.6.10
  • Windows Version Windows 10 v1709 (Build 16299.309)
  • Local file
  • Could not launch, logexpert exe was quarantined - threat detected as Trojan:Win32/Critet.BS

I have already submitted a sample to Microsoft as a corporate user - recieved answer that file is safe, however new definitions still flag it as unsafe.
Have also submitted both EXE and entire zip to virustotal for scanning. EXE scans clean

Action required
As the developer, please submit EXE for analysis at https://www.microsoft.com/en-us/wdsi/filesubmission

json line log

Hello,

I'm using LogExpert for quite some time.
Now, my company want to write the logs in a "json line" format.

Would you have an example of Columnizer (code/bin) that would efficiently deal with json format like the 2 log lines below?

{"ts":"2017-11-09 11:20:54,018Z","level":"INFO","msg":"Starting AssetApplication v0.5.51 on 49723547f7f3 with PID 1 (/asset.jar started by root in /)","host":"49723547f7f3","app":"PhAsset","item":"com.asset.AssetApplication","pid":"1","tid":"main"}
{"ts":"2017-11-09 11:20:54,336Z","level":"DEBUG","msg":"Running with Spring Boot v1.5.2.RELEASE, Spring v4.3.7.RELEASE","host":"49723547f7f3","app":"PhAsset","item":"com.asset.AssetApplication","pid":"1","tid":"main"}

Thank you in advance.

Pierre

Bug: Persistence file location\ Own directoy is cut if folder contains blanks

When I select in settings---Persistence----Own directory

a folder which contains blanks then the path is cut in display:

Example:

D:\tools\logfile 2018\ ----> D:\tools\logfile

Pls fix.

Furthermore I miss an option here to specify a relative path to the installation directory.

I want to specify a target folder which is a brother of the logexpert installation folder with the relative path definition "..\mylogs\ (mind the leading double dots)

Could you add this in the next release?

Drag and drop file crashes the program

Version: 151
OS: Windows 10

When I drop files into the program from explorer it crashes. If I open the same file from with in the program it works fine.

Could not find a log file to give you.

Highlighting not applied on last character of line

Highlighting is not correctly applied on words ending the lines: the last character is not highlighted. This seem to happen on files with LF as well as CRLF as line endings.

For instance, with this highlighter (used to highlight IP addresses):

image

I get this result:

image

Note that the first IP address is correctly highlighted, but not the second one.

Notes:

  • LogExpert Version: current master branch (2018-04-18 15h31)
  • Windows Version: Windows 10
  • Local file and network file (SFTP plugin)
  • Used Columnizer: none

Multifile doesn't work correctly

Current Version 1.6.6
Multifile mask: *$I.log

First file RailX_01.log loaded, enabled multi file
After 20 MegaBytes file closes, and RailX_02.log will be used by my app.

LogExpert doesn't show the transition to the second file (would be nice to see the title tab changing)
While operating with Alt-Up / Down I saw the is a switch over.

The data is shown wrong.
Screenshot:
Line 11465 is the FIRST line of RailX_01.log
Line 1-11464 are the lines from RailX_02.log at the time I saw the usage of Multifile.
See the time stamps in the screenshots.
RailX_01.log contains 93109 lines, size 20MB
RailX_02.log contains 93200 lines, size 20MB

Lines counter isn't updated anymore. While writing this ticket transition to RailX_03/04.log hasn't been noticed.
grafik

Offer option save Persistence+Logfile in installation (sub)directory

I miss an option to save logfile and persistence file in a sub directory "log" of current installation directory.

When I put LogExpert onto an USB flash drive and drive letter changes the sub directory should change automatically as well.

So I need a relative folder definition ".\log" (mind the dot)

Can this be added in the next release?

Thx

Multiline messages

Hi, is LogExpert supposed to support multiline messages (like StackTraces)

My version seems to treat each message of the multiline message as a separate line. E.g. filtering shows only one line of the multiline message.

Portable mode

It would be nice if I could bring LogExpert with myself on an usb stick with the same settings.

Like if there is a settings.dat next to LogExpert.exe then use that otherwise use the appdata directory.

Btw: Thanks for this application it made my life much easier

Bug - Hex char 0 (null)

Bug

Hello, I've found a bug, will try to describe it:

Bug No.1:

  1. Open attached .log file in LogExpert
  2. Double-click on serial number (digits inside " ")on line no.3 - space char and quotation mark will disappear
  3. Double-click on serial number on line no.4 - serial number with quotation mark will disappear

Bug No.2:

  1. Open attached .log file in LogExpert
  2. Press <Ctrl+A>, then <Ctrl+C> for copying into clipboard
  3. Open Notepad, or Notepad++ or whatever editor you have
  4. Press <Ctrl+V> for paste - you will see only two lines are copied from clipboard with missing quotation mark at the end of line 2, also rest of the copied file is missing.

Important note:
It seems that hex NUL (null) char is causing this issue. So, on line 2, there is no space char after serial number, but NUL char instead and vice versa.
testfile.log

image

  • LogExpert Version 1.6.7
  • Windows Version 7 x64
  • Local file

Sometimes appended file is reloaded completely instead of updated

Usually when a log file is appended to, the only visible update is that the new lines are shown.

But sometimes (almost always with larger files?) the entire file seems to get reloaded (with a progress bar in the statusbar) and the line/text columns are removed and re-added. This is hugely distracting and slow and makes the program useless for such logfiles where this happens constantly.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.