QuestionQ48

VerifiedLog Event Monitoring and Analysis in VCF Operations

The Development team has requested that the VCF Operations for Logs agent collect their log file, /var/log/app/server.log.

They provided this excerpt from the file:

[12Jan2025 17:36:50.408] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher running: args [--launchTarget, forgeserver, --fml.neoForgeVersion, 21.1.93, --fml.fmlVersion, 4.0.34, --fml.mcVersion, 1.21.1, --fml.neoFormVersion, 20240808.144430, nogui]  
[12Jan2025 17:36:50.410] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]:  
JVM identified as Eclipse Adoptium OpenJDK 64-Bit Server VM 21.0.3+9-LTS  
[12Jan2025 17:36:50.412] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher 11.0.4+main.d2e20e43 starting: java version 21.0.3 by Eclipse Adoptium; OS Linux arch amd64 version 6.8.0-51-generic  
[12Jan2025 17:36:50.441] [main/DEBUG]  
[cpw.mods.modlauncher.LaunchServiceHandler/MODLAUNCHER]: Found launch services  
[app, forgeclient, forgeclientuserdev, forgeserver, forgeserveruserdev, forgeclientdev, forgeclientuserdev, forgeserver, forgeunittestdev, forgedatadev]  
[12Jan2025 17:36:50.469] [main/DEBUG]  
[cpw.mods.modlauncher.LaunchPluginHandler/MODLAUNCHER]: Found launch plugins:  
[mixin, slf4jfixer, runtime_enum_extender, accesstransformer, runtimedistcleaner]  

Log messages, particularly errors, can span multiple lines.

What is the correct method for ensuring that multi-line logs are captured properly as a single event?

Explanation

Configure an event_marker regular expression that matches the timestamp at the beginning of each new log message. The agent can then group subsequent continuation lines with that event until it encounters the next marker. The marker must match the actual timestamp format in the log file. (knowledge.broadcom.com)

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!