Comments (3)
Is your input file huge for each line?
from gogstash.
@tsaikd hihi, i am I'm afraid not, each line format is Apache log format, and only have 4 lines for /tmp/logstash-tutorial.log
83.149.9.216 - - [04/Jan/2015:05:13:42 +0000] "GET /presentations/logstash-monitorama-2013/images/kibana-search.png HTTP/1.1" 200 203023 "http://semicomplete.com/presentations/logstash-monitorama-2013/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/32.0.1700.77 Safari/537.36"
83.149.9.216 - - [04/Jan/2015:05:13:42 +0000] "GET /presentations/logstash-monitorama-2013/images/kibana-search.png HTTP/1.1" 200 203023 "http://semicomplete.com/presentations/logstash-monitorama-2013/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/32.0.1700.77 Safari/537.36"
83.149.9.216 - - [04/Jan/2015:05:13:42 +0000] "GET /presentations/logstash-monitorama-2013/images/kibana-search.png HTTP/1.1" 200 203023 "http://semicomplete.com/presentations/logstash-monitorama-2013/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/32.0.1700.77 Safari/537.36"
83.149.9.216 - - [04/Jan/2015:05:13:42 +0000] "GET /presentations/logstash-monitorama-2013/images/kibana-search.png HTTP/1.1" 200 203023 "http://semicomplete.com/presentations/logstash-monitorama-2013/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/32.0.1700.77 Safari/537.36"
from gogstash.
Unfortunately, I cannot reproduce your state with your input file.
➜ gogstash git:(master) ✗ uname -mprsv
Darwin 21.6.0 Darwin Kernel Version 21.6.0: Mon Aug 22 20:19:52 PDT 2022; root:xnu-8020.140.49~2/RELEASE_ARM64_T6000 arm64 arm
➜ gogstash git:(master) ✗ go version
go version go1.19.3 darwin/arm64
➜ gogstash git:(master) ✗ git show-ref HEAD
0813dbd086f870631c5dd25d628002118b52ffa7 refs/remotes/origin/HEAD
➜ gogstash git:(master) ✗ ./gogstash worker --config ./gogstash.yml
2022/11/22 22:49:28 gogstash.go:61 [info] gogstash started...
{"path":"logstash-tutorial.log","@timestamp":"2022-11-22T14:49:28.887501Z","message":"83.149.9.216 - - [04/Jan/2015:05:13:42 +0000] \"GET /presentations/logstash-monitorama-2013/images/kibana-search.png HTTP/1.1\" 200 203023 \"http://semicomplete.com/presentations/logstash-monitorama-2013/\" \"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/32.0.1700.77 Safari/537.36\"","offset":0,"host":"MBP.local"}
{"host":"MBP.local","path":"logstash-tutorial.log","offset":325,"@timestamp":"2022-11-22T14:49:28.887735Z","message":"83.149.9.216 - - [04/Jan/2015:05:13:42 +0000] \"GET /presentations/logstash-monitorama-2013/images/kibana-search.png HTTP/1.1\" 200 203023 \"http://semicomplete.com/presentations/logstash-monitorama-2013/\" \"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/32.0.1700.77 Safari/537.36\""}
{"path":"logstash-tutorial.log","offset":650,"@timestamp":"2022-11-22T14:49:28.887741Z","message":"83.149.9.216 - - [04/Jan/2015:05:13:42 +0000] \"GET /presentations/logstash-monitorama-2013/images/kibana-search.png HTTP/1.1\" 200 203023 \"http://semicomplete.com/presentations/logstash-monitorama-2013/\" \"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/32.0.1700.77 Safari/537.36\"","host":"MBP.local"}
{"@timestamp":"2022-11-22T14:49:28.887742Z","message":"83.149.9.216 - - [04/Jan/2015:05:13:42 +0000] \"GET /presentations/logstash-monitorama-2013/images/kibana-search.png HTTP/1.1\" 200 203023 \"http://semicomplete.com/presentations/logstash-monitorama-2013/\" \"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/32.0.1700.77 Safari/537.36\"","offset":975,"host":"MBP.local","path":"logstash-tutorial.log"}
^C2022/11/22 22:49:30 util.go:116 [info] interrupt
2022/11/22 22:49:30 inputfile.go:203 [warning] File recreated, seeking to beginning: "logstash-tutorial.log"
➜ gogstash git:(master) ✗
from gogstash.
Related Issues (20)
- Elastic output document type as deprecated HOT 1
- Splitting one input into multiple outputs HOT 3
- Can I use dynamic index with elasticsearch output? HOT 2
- Back pressure handling document HOT 3
- useragent filter should use uap-go regexes by default HOT 1
- Fields with dots in the name cannot be referenced HOT 3
- Filter for key-value and unix nano timestamps HOT 2
- How to log in to elasticsearch HOT 2
- Input - UDP packet mode HOT 3
- Issues with file output HOT 1
- How does output to loki work? HOT 9
- Improve error message for geoip filter HOT 1
- output module "http" failed HOT 4
- Do you have any plan to add plain codec? HOT 5
- Supporting Logstash config syntax HOT 3
- Ctrl+C does not kill worker processes HOT 1
- Using GOMAXPROC instead of Forking HOT 12
- testing with zinc HOT 1
- Loki and org_id HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gogstash.