Python Forum
reading remote active log file?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
reading remote active log file?
#1
Hello ,
I want to be able to read a remote log file that run all the time
can I do this?
I have acess to the server , and can run the python app on the same server (no need for remote ssh\tcl\udp connection - if it will be easier to think of solution)
the reason is that I have only access to the file and not the code the create it (then I would just ask to send me the data , but I can't)
now I'm reading the file manually using 'tail -f logs/error.log' , and take action line by line
I want to read the entries and do something with them using python (send alerts , send files -- acoording tom my own rules)
the data is kind of simple syslog data

Thanks ,
Reply


Messages In This Thread
reading remote active log file? - by korenron - Jun-22-2021, 08:27 AM
RE: reading remote active log file? - by perfringo - Jun-22-2021, 02:04 PM
RE: reading remote active log file? - by korenron - Jun-24-2021, 09:07 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  reading a file like the unix tail -f command does Skaperen 2 321 Mar-31-2024, 12:09 AM
Last Post: Skaperen
  reading and writing a image stored in a file Skaperen 4 2,253 Feb-12-2022, 04:03 AM
Last Post: Skaperen
  reading an f-string from a file Skaperen 4 5,105 Nov-03-2019, 01:59 AM
Last Post: Skaperen
  First Active Online Python Linter ethanchewy 4 121,773 Sep-19-2017, 03:58 AM
Last Post: ethanchewy

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020