Hello Users, 

I have a scenario for which I need to develop a Web API through Django 
RESTFrameWork.
1) We have a multiple linux machines on which a  log file is generated as soon 
as there is some change in hash value of a license file . The log file 
generation and the license file monitoring has been automated through Python 
script on the servers itself. So far so good.
2) Now, I need develop an API that will read the matching pattern from the log 
file, and push it to the DB.
3) I also need to develop a dashboard where we can pull data on Daily, Weekly, 
monthly, and Yearly basis and show graph.
So far, I could do some testing with the Python RegEx to catch the matching 
pattern and its fine. But the problem is how to use DRF to pull those matching 
pattern directly from the log file to the DB each time the patter is generated 
in real time? I have been brainstorming for 3 days now, but reached nowhere.
Note:1) There is a log rotation happening I believe every 24 hours, and the log 
files are kept only for seven days. Prior to that the logs get deleted. 

I am not sure even if its possible, or what would be my approach.Please pour in 
with your suggestions.


Regards,
Amitesh 

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/1342849622.9012128.1578913093968%40mail.yahoo.com.

Reply via email to