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
mtail can not extract lines from the encoding of text files.My encoding of text file is ANSI #692
Comments
The encoding of my text file is ANSI.I found mtail can not extract line from ANSI.My mtail version is as bellow. |
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
<89b462d>
go version go1.18.3 go arch amd64 go os windows
—
Reply to this email directly, view it on GitHub
<#692 (comment)>, 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.com<http://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
<89b462d>
go version go1.18.3 go arch amd64 go os windows
—
Reply to this email directly, view it on GitHub
<#692 (comment)>, 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 GitHub<#692 (comment)>, or unsubscribe<https://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 |
If you have any question and need more detail information,please let me know. |
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 text was updated successfully, but these errors were encountered: