Python Forum
Looking for some ideas - Radius Log
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Looking for some ideas - Radius Log
#1
Hi, I have a radius server which store 400MB of text files, so I have millions of logs and I am wandering if it is possible to filter the data according to hour, date, etc. In the log file, every line is an entry and I would like to be able to make searchs in the file and find specific intormation according to my needs. What I am getting in the file is something like this:

IP,user,date,hour,device,etc,etc,etc,etc,etc
IP,user,date,hour,device,etc,etc,etc,etc,etc
IP,user,date,hour,device,etc,etc,etc,etc,etc
IP,user,date,hour,device,etc,etc,etc,etc,etc
IP,user,date,hour,device,etc,etc,etc,etc,etc
IP,user,date,hour,device,etc,etc,etc,etc,etc

I think the main task to achieve what I need, is indexing data line per line (probably using a for and indexing data in a dataframe) and then coding all the necessary to be able to filter according the colums I want to use as reference.

This thread is just to get if possible, a general view about how you would focus this scenario. Do you think that it is possible to achieve this only using python? Thank you very much in advice.
Reply
#2
This is definitely doable in Python. Generally, you'll find we're most helpful when you write a code attempt, and have a specific question; I don't see much to go on here.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Python Pandas Syntax problem? Wrong Output, any ideas? Gbuoy 2 932 Jan-18-2023, 10:02 PM
Last Post: snippsat
  Help with coding/ideas natalie 6 1,852 Feb-12-2022, 03:16 PM
Last Post: deanhystad
  Dealing with a .json nightmare... ideas? t4keheart 10 4,412 Jan-28-2020, 10:12 PM
Last Post: t4keheart
  User input to calculate Area or Radius of Circle DustinKlent 3 6,335 Nov-10-2019, 08:46 AM
Last Post: Gribouillis
  some ideas for intelligent list splitting? wardancer84 4 3,223 Nov-20-2018, 02:47 PM
Last Post: DeaD_EyE
  Ideas?? gullidog 3 3,739 Jul-20-2017, 09:06 PM
Last Post: sparkz_alot
  Ideas for creating a function Ganjena 0 2,714 May-27-2017, 08:57 PM
Last Post: Ganjena

Forum Jump:

User Panel Messages

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