• 0 Posts
  • 1 Comment
Joined 11 months ago
cake
Cake day: August 7th, 2023

help-circle
  • yojimbo@sopuli.xyztolinuxmemes@lemmy.worldLiving the power user life over here
    link
    fedilink
    arrow-up
    17
    arrow-down
    1
    ·
    edit-2
    10 months ago

    A dirty linux admin here. Imagine you get ssh’d in nginx log folder and all you want to know are all the ips that have been beating againts certain URL in around last let’s say last seven days and getting 429 most frequent first. In kittie script its like find -mtime -7 -name "*access*" -exec zgrep $some_damed_url {} \; | grep 429 | awk '{print $3}' | sort | uniq -c | sort -r | less depends on how y’r logs look (and I assume you’ve been managing them - that’s where the zgrep comes from) should be run in tmux and could (should?) be written better 'n all - but my point is - do that for me in gui

    (I’m waiting ⏲)