Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No verbose on centos 7 #179

Closed
chichi13 opened this issue Jun 16, 2020 · 3 comments · May be fixed by #182
Closed

No verbose on centos 7 #179

chichi13 opened this issue Jun 16, 2020 · 3 comments · May be fixed by #182

Comments

@chichi13
Copy link

Hello !

I have a problem with the verbose of siege on my centos 7 machine. I have no verbose, even if I'm putting the '-v' flag.

Here is the configuration :

siege -C
CURRENT  SIEGE  CONFIGURATION
Mozilla/5.0 (redhat-x86_64-linux-gnu) Siege/4.0.5
Edit the resource file to change the settings.
----------------------------------------------
version:                        4.0.5
verbose:                        false
color:                          true
quiet:                          true
debug:                          false
protocol:                       HTTP/1.1
HTML parser:                    enabled
get method:                     HEAD
connection:                     close
concurrent users:               25
time to run:                    n/a
repetitions:                    n/a
socket timeout:                 30
cache enabled:                  false
accept-encoding:                gzip, deflate
delay:                          0.000 sec
internet simulation:            false
benchmark mode:                 false
failures until abort:           1024
named URL:                      none
URLs file:                      /etc/siege/urls.txt
thread limit:                   5000
logging:                        false
log file:                       /home/exploit_probance/siege.log
resource file:                  /home/exploit_probance/.siege/siege.conf
timestamped output:             false
comma separated output:         false
allow redirects:                true
allow zero byte data:           true
allow chunked encoding:         true
upload unique files:            true
json output:                    true
no-follow:
 - ad.doubleclick.net
 - pagead2.googlesyndication.com
 - ads.pubsqrd.com
 - ib.adnxs.com
proxy auth:
www auth:

When I'm looking at the siege.conf the verbose is at 'True' :

cat .siege/siege.conf | grep 'verbose'
# ex: verbose = true|false
verbose = true

The consequence of this problem is that I don't see any messages when I execute siege :

siege -r1 -c1 -H 'Content-Type: application/x-www-form-urlencoded' 'http://*.*.*.*:8080/map POST https://www.google.com/search?q=cat' -v

{       "transactions":                            1,
        "availability":                       100.00,
        "elapsed_time":                         0.01,
        "data_transferred":                     0.00,
        "response_time":                        0.01,
        "transaction_rate":                   100.00,
        "throughput":                           0.00,
        "concurrency":                          1.00,
        "successful_transactions":                 1,
        "failed_transactions":                     0,
        "longest_transaction":                  0.01,
        "shortest_transaction":                 0.01
}

With or without the -v flag, it's the same :'(

Thanks in advance.

@chichi13
Copy link
Author

chichi13 commented Jun 16, 2020

It appears that the last feature 'json output' is automatically to True and cancel the flag '-v' or the configuration 'verbose=true'

So, to resolve the 'problem', you need to put the 'json_output=false'

I let you decide if this is a bug or not.

@JoeDog
Copy link
Owner

JoeDog commented Jun 16, 2020 via email

@jmaslibre
Copy link
Contributor

Hi, I was able to reproduce this issue with the default configuration file:

Since the default configuration file has json_output set to true
( siegerc.in : https://github.com/JoeDog/siege/blob/master/doc/siegerc.in#L70 )
and the json_output monopolizes stdout, superceding verbose,
( init.c : https://github.com/JoeDog/siege/blob/master/src/init.c#L691-L696 )

I created a PR with a proposal to improve this:
#182

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants