mtail can not extract lines from the encoding of text files.My encoding of text file is ANSI
Thanks for discovering a problem in mtail!
When reporting bugs in mtail behaviour, please be as detailed as possible; describe the problem, what you wanted to have happen, what you observed instead.
If your problem is with the way an mtail program is behaving, please attach or include inline any mtail programs that demonstrate the bug, any log files that mtail was processing, and the observed output.
If your problem is with mtail, please include the commandline you started it with, and the INFO log.
See also Reporting a problem.
Thanks!
The encoding of my text file is ANSI.I found mtail can not extract line from ANSI.My mtail version is as bellow. mtail version 3.0.0-rc50 git revision 89b462d7a83bab283e84a3b6e592a964090f7f4c go version go1.18.3 go arch amd64 go os windows
Can you share an example log and programme so I can reproduce this?
On Fri, 11 Nov 2022 at 12:39, andytangshiji @.***> wrote:
The encoding of my text file is ANSI.I found mtail can not extract line from ANSI.My mtail version is as bellow. mtail version 3.0.0-rc50 git revision 89b462d https://github.com/google/mtail/commit/89b462d7a83bab283e84a3b6e592a964090f7f4c go version go1.18.3 go arch amd64 go os windows
— Reply to this email directly, view it on GitHub https://github.com/google/mtail/issues/692#issuecomment-1311122842, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAXFX6ZLFK3KXWQQOTWPLCDWHWPWVANCNFSM6AAAAAAR5EUICQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>
Dear Jamie,
The Attachement is one of my log file.The encoding of this is ANSI.As below is my programme.Once writting lines into this log,I found lines read always keep zero,and can not get lines total.When I translate encoding of log file into utf8,and restart mtail,I can get result of lines total.Could you give me some advice?
simple line counter
counter lines_total /$/ { lines_total++ }
Best Regards, http://www.shijigroup.com/
http://www.shijigroup.com/ 唐海斌 Andy 工程师 | service engineer 石基目的地综合事业部|Destination Solution-Shiji Group HDBU T +86 779 3235288 89113 | E @.*** | www.shijigroup.comhttp://www.shijigroup.com/
From: Jamie @.> Date: 2022-11-13 07:59 To: @.> CC: @.>; @.> Subject: Re: [google/mtail] mtail can not extract lines from the encoding of text files.My encoding of text file is ANSI (Issue #692)
[Security Reminder] Please use caution - message originated from outside Shiji.
Can you share an example log and programme so I can reproduce this?
On Fri, 11 Nov 2022 at 12:39, andytangshiji @.***> wrote:
The encoding of my text file is ANSI.I found mtail can not extract line from ANSI.My mtail version is as bellow. mtail version 3.0.0-rc50 git revision 89b462d https://github.com/google/mtail/commit/89b462d7a83bab283e84a3b6e592a964090f7f4c go version go1.18.3 go arch amd64 go os windows
— Reply to this email directly, view it on GitHub https://github.com/google/mtail/issues/692#issuecomment-1311122842, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAXFX6ZLFK3KXWQQOTWPLCDWHWPWVANCNFSM6AAAAAAR5EUICQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>
— Reply to this email directly, view it on GitHubhttps://github.com/google/mtail/issues/692#issuecomment-1312599434, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AVSAIPYL6DYGP2BIOP24L3LWIAVOVANCNFSM6AAAAAAR5EUICQ. You are receiving this because you are subscribed to this thread.Message ID: @.***>
[https://corp-public.oss-cn-hangzhou.aliyuncs.com/banner/20220824.png]https://app.ma.scrmtech.com/meetings-api/sapIndex/SapSourceData?pf_uid=13109_1556&sid=66094&source=2&pf_type=3&channel_id=3264&channel_name=%E5%AE%98%E7%BD%91&tag_id=66bffac2a4d9f336
There's no attachment in the GitHub issue. Can you please look at the GitHub issue page in the footer of the email and attach the log directly?
Thanks!
2022111014.txt please check my attachement
If you have any question and need more detail information,please let me know.
The attached file looks like its a multi-line log file. What character set is it?
This issue has been waiting for more information for more than 60 days and will be closed in 7 if no update is provided.