Skip to main content
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
deleted 32 characters in body; edited tags
Source Link
Jeff Schaller
  • 68.8k
  • 35
  • 122
  • 264

I have seen someone use this command -- and it works where it pulls back all the IPS in a list/group:

    cat access.* | awk '{ print $1 }' | sort | uniq -c | sort -n

howeverHowever, I want to chosechoose the past 2 days, anyone able to point me in the right direction

Thanksdays; how can I do that?

I have seen someone use this command and it works where it pulls back all the IPS in a list/group

    cat access.* | awk '{ print $1 }' | sort | uniq -c | sort -n

however I want to chose the past 2 days, anyone able to point me in the right direction

Thanks

I have seen someone use this command -- and it works where it pulls back all the IPS in a list/group:

cat access.* | awk '{ print $1 }' | sort | uniq -c | sort -n

However, I want to choose the past 2 days; how can I do that?

Source Link
WMK83
  • 65
  • 2
  • 8

view IPs from apache access.log for date period

I have seen someone use this command and it works where it pulls back all the IPS in a list/group

    cat access.* | awk '{ print $1 }' | sort | uniq -c | sort -n

however I want to chose the past 2 days, anyone able to point me in the right direction

Thanks