mtail icon indicating copy to clipboard operation
mtail copied to clipboard

mtail can not extract lines from the encoding of text files.My encoding of text file is ANSI

Open andytangshiji opened this issue 3 years ago • 7 comments

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!

andytangshiji avatar Nov 11 '22 01:11 andytangshiji

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

andytangshiji avatar Nov 11 '22 01:11 andytangshiji

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: @.***>

jaqx0r avatar Nov 12 '22 23:11 jaqx0r

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

andytangshiji avatar Nov 14 '22 03:11 andytangshiji

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!

jaqx0r avatar Jan 01 '23 05:01 jaqx0r

2022111014.txt please check my attachement

andytangshiji avatar Jan 03 '23 05:01 andytangshiji

If you have any question and need more detail information,please let me know.

andytangshiji avatar Jan 03 '23 05:01 andytangshiji

The attached file looks like its a multi-line log file. What character set is it?

jaqx0r avatar May 27 '24 12:05 jaqx0r

This issue has been waiting for more information for more than 60 days and will be closed in 7 if no update is provided.

github-actions[bot] avatar Jul 27 '24 01:07 github-actions[bot]