search

Home  >  Q&A  >  body text

Server - Why is the IP source obtained by analyzing the Nginx log file incorrect?

Use Python to process Nginx's access.log log file. After getting the IP, use the API of www.ipip.net to locate it. I found that the results were very different from what I expected. Some access locations that I could determine did not appear. May I ask which link caused the problem?

nginx’s access.log adopts the default format

阿神阿神2758 days ago590

reply all(1)I'll reply

  • 为情所困

    为情所困2017-05-16 17:20:31

    access.log was split into multiple files and I didn't realize it. Checking other files found that the data was normal. Just a reminder to everyone

    reply
    0
  • Cancelreply