LogViewer - Failed to read data from logs #203
Replies: 12 comments 3 replies
-
@sevdokimov , |
Beta Was this translation helpful? Give feedback.
-
Could you please advise on this. awaiting for your response. |
Beta Was this translation helpful? Give feedback.
-
@srshankirth sorry for the delay. Here is the correct configuration:
Note: |
Beta Was this translation helpful? Give feedback.
-
Hi @sevdokimov, Thanks for sharing the configuration. We have tried in the config and mentioned in both host as below. However, we are unable to read the log file from both servers T01/U02. (Note: we are able to read the log file from only one server - T01, but not from another host - logs = [ log-paths = { |
Beta Was this translation helpful? Give feedback.
-
Hi @sevdokimov , |
Beta Was this translation helpful? Give feedback.
-
Hi @sevdokimov , We are able to read the log files from both servers as expected with the configuration that you have shared. Thanks for the assistance. I would need to disable or remove the Download option from the top right end menu. Attached screenshot for reference. could you please assist on this to do the needful. I am not sure since we have the Jar files available within " log-viewer-cli/src/test/java/com/logviewer/tests/pages/LogPage.java |
Beta Was this translation helpful? Give feedback.
-
Hi @sevdokimov , I am using below regex (consider screenshot) and trying to extract only the Green highlighted box , no need to pull or extract the yellow highlighted box (attached screenshot). could you please advise at earliest on this comment to achieve to pull only the green highlighted box log data and also advise for comment added on 26/03/2024. logs = [ |
Beta Was this translation helpful? Give feedback.
-
Hi @sevdokimov , Request you to suggest on this to proceed further as this is urgent request on my end. |
Beta Was this translation helpful? Give feedback.
-
Hi @sevdokimov , |
Beta Was this translation helpful? Give feedback.
-
Hi @srshankirth Sorry for the delay. There is no options to hide Download button, I'll add this option later.
Do you mean the messages containing "User: 280834234" should be displayed, and other messages should be hidden, correct? You can click "Add Filter" -> Text Filter Then select "Regexp" checkbox and type a regexp for filtering messages. This regexp will be applied to all messages after parsing, only matched events will be displayed. After adding this filter, the browser URL will contain a parameter like |
Beta Was this translation helpful? Give feedback.
-
Hi @sevdokimov , Do you mean the messages containing "User: 280834234" should be displayed, and other messages should be hidden, correct? Please find attached document with screenshots along with my expectation/requirement. could you please advise if there is a way to achieve instead of filtering from UI. Looking forward on your response. |
Beta Was this translation helpful? Give feedback.
-
Hi @sevdokimov , I understood the filter in UI will remove all unmatched lines. Can you please let me know if there is a way to read the logs based on below text form and display in UI instead of applying filter after the data is rendered in UI. Text form as below: |
Beta Was this translation helpful? Give feedback.
-
Hi,
Please see below configuration tried on our end for the sample log file. The exception is displayed as "Failed to read logs" and (No date field,
log cannot be merged) while running the log viewer. Attached screenshot. we are trying to read the logs from 2 servers and display it.
Could you please check and advise on this to resolve. Let us know if additional info is needed.
log-paths = {
sandstone = {
file = "E:/SSTLogs/.lo"
host = ["aptinthubt01","aptinthubu02"]
format = {
type: RegexLogFormat
regex: "(?\d{2}/\d{2}/\d{2}) + (?.+)"
locale: "en_UK"
charset: UTF-8
fields: [
{ name: "date", type: "date" },
{ name: "msg", type: "message" },
]
}
}
}
Log file as below:
"04/03/21 23:59:48 1197770875 TcpipListener 21002-030021 SkLoggedEvent Http request [BlvWebRequest (TF2TVB)] rejected with status=[404], reason=[File not found] , explanation=[Document /About/files/SuiKitchenSinkLibrary/logo.png not found.]";
Referred URL:
https://github.com/sevdokimov/log-viewer/blob/master/_docs/configuration.md
Beta Was this translation helpful? Give feedback.
All reactions