centos7 iperf daemon logging

Can't seem to find a way of logging iperf client connections to the server.
Can anyone explain or show details on how this could be done.
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

From what I am aware there is no logging on iperf daemon because it sends everything to /dev/null. There is a feature request but it is still opening -

projectsAuthor Commented:
Yes, I found the feature request and posts from others asking for this but hoped that someone might have a solution in the meantime.

I need to log all tests being done to the server. I suppose I could set up logging by port or something but hoped there might be some other way.
There is no logging on iperf by default but you can pipe client and servers stats to a file.

iperf version 2.0.5 (08 Jul 2010) pthreads
iperf -s -D >> /tmp/server

Open in new window

iperf version 2.0.5 (08 Jul 2010) pthreads
iperf -c server1 >>/tmp/client

Open in new window

You can try installing  iperf 3 -

    New Features in iPerf 3.1 :
        -I, --pidfile file write a file with the process ID, most useful when running as a daemon.
        --cport : Specify the client-side port.
        --sctp use SCTP rather than TCP (Linux, FreeBSD and Solaris).
        --udp-counters-64bit : Support very long-running UDP tests, which could cause a counter to overflow
        --logfile file : send output to a log file.

Open in new window

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.