sevdokimov / log-viewer

Web UI for viewing logs
Apache License 2.0
504 stars 108 forks source link

Log-viewer to open CSV file #213

Open kw8088 opened 5 months ago

kw8088 commented 5 months ago

Hello, In my environment, I have large numbers of CSV files with 3 columns (eg "A", "B", "C"). each column's data type are just strings.

I have try to use setup the config like following { path: "*/.csv" format= { type: Log4jLogFormat pattern: "%m,%m,%m" } }

However, when I double click those CSV files with LogViewer web front end's Browser, it does not open and just shown as "Unknown" file type. The logviewer log file does not show any error.

I have also tried using RegexLogFormat, but still same error.

I'm using version 1.0.7 of logviewer and OpenJDK Runtime Environment (build 11.0.22+7-post-Ubuntu-0ubuntu220.04.1)

Thank you

kw8088 commented 5 months ago

Looks like it is the bug of the file browser. If I directly point this the CSV file itself, the content are displayable. (see snippet below)

2024-06-07_19h24_44