Coder Social home page Coder Social logo

Simplify logs about db1000n HOT 8 CLOSED

Andrii-Asiox avatar Andrii-Asiox commented on July 23, 2024
Simplify logs

from db1000n.

Comments (8)

roman-kruglov avatar roman-kruglov commented on July 23, 2024 2

@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..

from db1000n.

arriven avatar arriven commented on July 23, 2024 1

available in 0.9.10, thanks to @roman-kruglov

from db1000n.

arriven avatar arriven commented on July 23, 2024

So there are couple options to achieve something similar to what you need already:

  • you can specify --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)
  • alternatively, you can specify --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

from db1000n.

PerchunPak avatar PerchunPak commented on July 23, 2024

Чому в документації немає нічого про ці опції?

from db1000n.

avoylenko avatar avoylenko commented on July 23, 2024

@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

from db1000n.

roman-kruglov avatar roman-kruglov commented on July 23, 2024

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".

from db1000n.

roman-kruglov avatar roman-kruglov commented on July 23, 2024

Well, let's start with a simple boolean flag then #552

from db1000n.

roman-kruglov avatar roman-kruglov commented on July 23, 2024

it's merged, should be in the next release. Maybe we could close this issue now.

from db1000n.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.