Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
462 views
in Technique[技术] by (71.8m points)

node.js - NodeJS stream pipeline to count the occurrence of a string in a text

I do have a log.txt file as seen below:

2020-07-02T17:54:15.294Z [awsse gateway ffd308223232]: /usr/local/share/lua/5.1/pgmoon/init.lua: in fu 2020-07-02T17:54:15.294Z [awsse gateway ffd308223232]: /usr/local/share/lua/5.1/kong/dao/db/postgres.lua:355: in function 'query' 2020-07-02T17:54:15.294Z [awsse gateway ffd308223232]: .../lua/5.1/kong/plugins/rate-limiting/policies/cluster.lua:181: in function 'find' 2020-07-02T17:54:15.294Z [awsse gateway ffd308223232]: ...are/lua/5.1/kong/plugins/rate-limiting/policies/init.lua:121: in function 'usage' 2020-07-02T17:54:15.294Z [awsse gateway ffd308223232]: ...cal/share/lua/5.1/kong/plugins/rate-limiting/handler.lua:46: in function 'get_usage' 2020-07-02T17:54:15.294Z [awsse gateway ffd308223232]: ...cal/share/lua/5.1/kong/plugins/rate-limiting/handler.lua:91: in function <...cal/share/lua/5.1/kong/plugins/rate-limiting/handler.lua:72> 2020-07-02T17:54:15.294Z [awsse gateway ffd308223232]: coroutine 1:

I do need help in using Nodejs stream in counting the occurrence of [awsse gateway ffd308223232] in the log.txt

Thanks


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...