Comments (6)
@simonpasquier Thanks, that's indeed very helpful. Maybe add information like that into a getting started file? Or something like migrating from Heka guide.
@trink It took me a while to wrap my head around the whole hindsight concept. For example there's no mention of lua_sandbox_extensions
project on the first README page. I know that Kafka and Elasticseach are not part of this project, but for newcomers would be useful to understand the possibilities (maybe just list some extensions that are already available).
Configuration page is ok, but goes too much into detail in case that you're just starting with the project.
The systemd module is not really documented. Is there a way how to process journalctl -f
?
from hindsight.
Please check this post on the hindsight mailing list => https://mail.mozilla.org/pipermail/hindsight/2016-October/000008.html
If it answers your question, please close the issue.
from hindsight.
I am open to suggestions. It is unclear how useful a simple example would be i.e. I could show a simple polling input that would inject a message once a second (followed by some analysis counter and output sandbox). However, this is no different than the basic documentation provided for all sandboxes. The only thing you could actually re-use when you try to apply it to your problem would be the main hindsight.cfg described here: https://github.com/mozilla-services/hindsight/blob/master/docs/configuration.md
The quick start is really setup a directory structure like this (with the hindsight.cfg example from the docs and the selection of sandboxes/plugins you desire)
.
├── hindsight.cfg
├── load
│ ├── analysis
│ ├── input
│ └── output
└── run
├── analysis
│ ├── counter.cfg
│ └── counter.lua
├── input
│ ├── once_a_second.cfg
│ └── once_a_second.lua
└── output
├── stats.cfg
└── stats.lua
FYI: The load directory structure is only necessary if you have dynamic loading configured.
Then run hindsight hindsight.cfg 7
from hindsight.
@deric For the syslog input and debug output have you looked at the following sandboxes?
https://github.com/mozilla-services/lua_sandbox_extensions/blob/master/syslog/sandboxes/heka/input/syslog_udp.lua
https://github.com/mozilla-services/lua_sandbox_extensions/blob/master/heka/sandboxes/heka/output/heka_debug.lua
from hindsight.
@deric: The systemd module was initially pulled in for sd_listen_fds(). This is mandatory to listen directly to listen directly to syslog.socket (see https://www.freedesktop.org/wiki/Software/systemd/syslog/).
I my current test setup, I replace rsyslog by hindsight. It works well (with some pull request not yet merged). I should document this in a blog post.
pluging to journal socket can be done by writing a new input and using the journal API. See sd_journal_* at https://github.com/daurnimator/lua-systemd/blob/master/README.md.
You'll gain extra fields, but you'll probably have worst throughput (journal API is sloooow).
See also my TODO list at https://gist.github.com/sathieu/5a7e83d514638f396e17d462f13adee0
from hindsight.
Thanks a lot for all the hints!
from hindsight.
Related Issues (20)
- Remove the data preservation file after a failed restoration HOT 1
- Expose individual plugin logs through the UI
- Cleaning unused rtc files on output folder + .off files in input folder HOT 1
- Reset the utilization estimates when the system backpressures
- Replace gitbook with mdbook
- What is the "production" version of hindsight ? HOT 1
- build hindsight v0.15.3 error HOT 8
- CODE_OF_CONDUCT.md file missing
- Hindsight become stuck without error info HOT 2
- Async output checkpoints are only updated when consuming data
- Floating point exception HOT 4
- Investigate the cause of the FPE in the message/s estimate HOT 2
- Issue while decoding syslog HOT 2
- tail.lua is not erroring on an invalid checkpoint
- Relationship and compatibility with mozdef. HOT 3
- Tail input being ignored HOT 6
- Tail not following after reaching EOF HOT 6
- Input logs not being pruned
- Hindsight segfaults when unable to send data to kafka
- Travis CI free usage ends Dec 3; mozilla repos should switch to other CI platforms
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 hindsight.