api - linux tcpdump ---how to find number of hits -



api - linux tcpdump ---how to find number of hits -

how can check number of api hits per day linux.

scenario : need nail client's api fetch data. api nail using cron job , through linux wget command. client complaining receives huge number of hits ip.

so, how can find number of times api hit/day linux command.

please help. urgent!!

if sure, wget client's api invoked cron job, can @ crontab next command:

crontab -l

in cases have phone call crontab root rights see scheme wide crontab. this:

# m h dom mon dow command 10 1 * * 1 /usr/bin/wget http://example.com/api

this means, wget scheduled request illustration api every mon @ 01:10am. can interpret output of crontab this:

* * * * * command executed - - - - - | | | | | | | | | +----- day of week (0 - 7) | | | +------- month (1 - 12) | | +--------- day (1 - 31) | +----------- hr (0 - 23) +------------- min (0 - 59)

more case output this:

# m h dom mon dow command */5 * * * * /usr/bin/wget http://example.com/api

this means, wget called every 5th min (288 hits per day).

if cron not calling wget straight script, have analyse script how wget called. alternative solution in case set firewall rule log every request client's api server.

linux api

Comments

Popular posts from this blog

How do I check if an insert was successful with MySQLdb in Python? -

delphi - blogger via idHTTP : error 400 bad request -

postgresql - ERROR: operator is not unique: unknown + unknown -