使用不同传输的数据馈送器
feedr的Python项目详细描述
feeder使用指定的格式化程序生成事件/日志并发送它们 使用指定的传输。它还可以使用 假工厂。
快速启动
安装
pip install feeder
# or, for dev:
pip install https://github.com/nir0s/feeder/archive/master.tar.gz
用法示例
见feeder config 和advanced config 配置传输和格式化程序。
# this will assume config.py in the cwd and assume default for each option mouth feed # or.. you can specify whatever you want in the cli.. mouth feed -c /my/config/file/path.py -t AMQP -f Json -g 0.001 -m 100000000 mouth feed -t UDP -f Custom -g 0.00001 -m 102831028# you can also send in batches mouth feed -t UDP -f Custom -g 0.01 -m 102831028 -b 1000# and even use some common formatters like apache's.. mouth feed -t Stream -f ApacheError # print fake data types that you can use in the config... mouth list fake # print a list of available transports mouth list transports # print a list of available formatters mouth list formatters
流浪汉
提供了一个漂流文件:它将加载一台机器并安装进料器 把它放在虚拟机里,这样你就可以用它做实验了。对于一台机器 包含饲养员、麋鹿和兔,请参阅elk-workshop repo。