Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom Log Properties to Show #41

Open
derekcarlos opened this issue May 13, 2024 · 1 comment
Open

Custom Log Properties to Show #41

derekcarlos opened this issue May 13, 2024 · 1 comment
Labels
question Further information is requested

Comments

@derekcarlos
Copy link

I am trying to create a Log Profile for Access Logs, and I tried it with the following Regular Expression:

^(?<Client_IP>\S+)\s+(?<Server_IP>\S+)\s+(?<field3>\S+)\s+(?<date>\d{4}-\d{2}-\d{2})\s+(?<time>\d{2}:\d{2}:\d{2})\s+(?<method>\S+)\s+(?<url>\S+)\s+(?<query_string>\S+)\s+(?<status_code>\d+)\s+(?<bytes_sent>\d+)\s+(?<response_time>\d+\.\d+)$

It tests successfully when I try it with a sample log line, but when I try to add a Log Property, the name I set up above doesn't appear on the Property Dropdown unless I use one of the predefined names when setting up the Regular Expression. Would it be possible for me to use my own Log Property Names?

I am using the latest version for macOS (v. 4.0.9.331)

@hamster620
Copy link
Collaborator

@derekcarlos For better performance and memory usage, only predefined log properties are supported. Currently Extra1 to Extra20 are defined for custom log properties, you can use them with inline comment:

^(?<Extra1>(?#ClientIP)\S+)\s+(?<Extra2>(?#ServerIP)\S+)...

@hamster620 hamster620 added the question Further information is requested label May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants