13 Sep 2023 10:35 AM - last edited on 18 Sep 2023 10:30 AM by Ana_Kuzmenchuk
Hello.
I am on managed 1.274.157.20230908-165051 + OneAgent v1.267.155.20230629-142023+. We moved to log Classic kinda recently.
I have a process group with Dynatrace UI showing auto-detected log files :
...
/myFSLocation/var/log/tomcat/abcd2/abcd2-daily.log
/myFSLocation/var/log/tomcat/abcd2/abcd#-daily.log (File is not included in log monitoring, some log records may be missing)
...
Could we be exposed to an issue with log rotation detection (https://www.dynatrace.com/support/help/shortlink/log-rotation-patterns) ? Any one experienced this ? Any idea ?
Regards.
--
(My private internal refs: dynt request: 217427 - jira: DEVOPS-14282)
14 Sep 2023 02:09 PM
I observe, when I add an extra rule in "Custom log source configuration" to tell Dynatrace /myFSLocation/var/log/tomcat/abcd2/abcd2-daily.log is a log, then it at last get's uploaded.
But not associated to its PG nor itS PGI. Which is strange, because when I watch through the PG, the tabs "Logs" shows the log file alright. If I add a PG context in the "Custom log source configuration" rule then it's contextualised all-right with PG and PGI.
Yet all this requires per log / per PGI définitions : quite some qork ! Ans not durable : if a PG-ID changes : all gone ! 🙂
Any ideas.
Regards.
30 Oct 2023 03:03 PM
Hi @gilles_tabary ,
I am a bit puzzled here, your title is "Log with number/hash character in the file name not uploaded" but you are talkign about /myFSLocation/var/log/tomcat/abcd2/abcd2-daily.log not being recognized. so, what is the problem? file name with hashes? numbers, normal file but not being identified?
We are using logging quite heaviliy and if we are absolutelly stuck we used to log to oneagent logs (quite verbose, but only source of information so far).
Something we faced and solved so far were:
- logs not collected due symlinks used (some symlinks are not acepted in DT). Normally we were able to see it as path to logs was different on autotetected logs page as one you would see on machine.
- logs not collected due wrong match rules. You have to list all combinations (log with numbers, log without numbers, etc.) in one matcher, as inside a matche you habe OR, between matchers you have AND
BR,
Ingrida
30 Oct 2023 03:27 PM
Hello.
The problem is : I need /myFSLocation/var/log/tomcat/abcd2/abcd2-daily.log to be uploaded. I am baffled. We lost weeks of log monitoring. We spent weeks on this issue 217427, with no clear solution. Please refer to this ticket for details as it is quite time consuming to give over and over the same context. 🙂
It was suggested to specify a "Log storage configuration" rule with /myFSLocation/var/log/tomcat/abcd2/abcd#-daily.log
FYI : I have some log uploading working fine with non digit including file-name like /myFSLocation/var/log/tomcat/abcde/abcde-daily.log
Regards.
30 Oct 2023 02:26 PM
I still have to clean / clear solution to this.