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

[Question] Parsing back log files create by ECS for Serilog. #199

Closed
LiorBanai opened this issue Aug 24, 2022 · 6 comments
Closed

[Question] Parsing back log files create by ECS for Serilog. #199

LiorBanai opened this issue Aug 24, 2022 · 6 comments

Comments

@LiorBanai
Copy link

Hi,
I want to create a parser for exist log file for my https://github.com/Analogy-LogViewer/Analogy.LogViewer application.

Is there an example how to read back a file? All the units test seems to only write logs.

@andreycha
Copy link
Contributor

Hi,

I guess you can just read the log file using File.ReadAllLines() and then parse every line using EcsDocument.Deserialize(). You'll need to reference Elastic.CommonSchema package for that.

@LiorBanai
Copy link
Author

@andreycha Thanks, I'll try it.

@LiorBanai
Copy link
Author

LiorBanai commented Aug 28, 2022

BTW, are the latest changes released as nuget? The last one is from 2021

@andreycha
Copy link
Contributor

No. Looks like the plan is to upgrade the library right to 8.4.0, I believe you can follow it here: #197

@LiorBanai
Copy link
Author

@andreycha Thanks!

@Mpdreamz
Copy link
Member

Mpdreamz commented Sep 1, 2022

Thanks for answering @andreycha 👍 Closing this out while we gear up to release #197

@Mpdreamz Mpdreamz closed this as completed Sep 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants