Comments (4)
That's fine, but then you'll want to use another log forwarding tool like svlogd — oklog forward
will never be in the business of managing files on disk.
from oklog.
No reason to bring in a dependency for this. My intuition is that a custom little ringbuffer should work fine. Happy to consider anything you come up with, though.
from oklog.
Interesting.
The standard library 'ring' package https://golang.org/pkg/container/ring/ seems a little overkill for a byte slice.
Something akin to this might be a more straightforward fit https://github.com/armon/circbuf/blob/master/circbuf.go . Prolly needs a mutex though.
If I find time I'll have a play and send a PR.
From there I'd love to expose a function to forward programatically in-app ... one step at a time eh.
Cheers.
from oklog.
An option that I think I'd want to use in our production systems is neither backpressure (I don't want to slow down our workers due to what I hope is a temporary slowdown in ingestion rate) nor drop log lines but instead locally buffer the data on the local file system.
from oklog.
Related Issues (20)
- Panic: short record HOT 2
- Move to length-delimited records HOT 8
- Add first-class concept of topics HOT 11
- Extend record identifier HOT 9
- Long-term storage
- Docker repo doesn't contain recent releases HOT 4
- network HOT 3
- forwarder mangles bare percent signs HOT 2
- Integration with Fluentd HOT 1
- bufio.Scanner: token too long HOT 1
- Log records can be stored in wrong order HOT 8
- Implement optional text indexing for faster queries
- Implement token based access control
- Compacter writes too much data to disk HOT 1
- Proposal: Create ULID from timestamp contained in record HOT 1
- Local node unable to connect to self after netowrk change
- Unable to "make install" using the tar.gz package and no oklog command found HOT 2
- What's the best way to test the cluster in large installation is working
- How oklog stores data?
- Web UI Improvements
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 oklog.