Closed Andrii-Asiox closed 2 years ago
So there are couple options to achieve something similar to what you need already:
--log-format json
and then feed those to some json parser to only gather info you need (I think https://github.com/ihorlv/db1000nX100 does something similar to that so you could take some inspiration there)--log-level fatal
- that should disable all the logs except the stats table. the table may still be pretty large so if json option is not good enough I could probably make alternative reporter format that would only output total stats but not sure when I can get to itЧому в документації немає нічого про ці опції?
@PerchunPak i guess in most cases it's enough to run the binary without any provided options, but you can see all of them by running the db1000n instance with '-h' argument:
./db1000n -h
@arriven I'll implement it - an option to have only totals. I think it would be even better to have totals and each protocol as a target, something like:
http | stats...
https | stats..
tcp | stats..
--------
total | stats..
Propose to call it -less-stats
. Maybe fewer
would be more grammatical, but I guess less
is kinda more conventional for text..
Maybe a numeric options would be even better? Something like -less-stats=20
would mean "show less info when the number of targets is higher than 20".
Well, let's start with a simple boolean flag then https://github.com/arriven/db1000n/pull/552
it's merged, should be in the next release. Maybe we could close this issue now.
available in 0.9.10, thanks to @roman-kruglov
Вітаю, я маю невеличку ферму телефонів на яких запущено db1000n і дуже не зручно дивитися на це простирадло логів. Чи могли б ви зробити спрощений режим де просто буде якась оцінка якості атаки, щоб було зрозуміло варто змінювати впн з'єднання чи ні. Дякую