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

Multiple spaces in the Regular Expression form are replaced with one space in the Configuration section #474

Open
yuokada opened this issue Dec 9, 2022 · 1 comment

Comments

@yuokada
Copy link

yuokada commented Dec 9, 2022

A RE isn't reflected to the format key in the auto-generated configuration code as it is when a RE has multiple spaces like below.

Here is my regular expression. In my case, there are 2 spaces right after the regular expression for the time parameter. Those characters are omitted to one space in the Configuration section.

^(?<time>\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}.\d{3})Z  (?<log_level>\w+) \[(?<module>\w+)\] (?<message>.*)

e.g: https://fluentular.herokuapp.com/parse?regexp=%5E%28%3F%3Ctime%3E%5Cd%7B4%7D-%5Cd%7B2%7D-%5Cd%7B2%7D+%5Cd%7B2%7D%3A%5Cd%7B2%7D%3A%5Cd%7B2%7D.%5Cd%7B3%7D%29Z++%28%3F%3Clog_level%3E%5Cw%2B%29+%5C%5B%28%3F%3Cmodule%3E%5Cw%2B%29%5C%5D+%28%3F%3Cmessage%3E.*%29&input=2022-12-06+03%3A26%3A14.885Z++info+%5BMyApplication%5D+Starting+logging++-+%28MyApplication.java%3A100%29&time_format=%25Y-%25m-%25d+%25H%3A%25M%3A%25S.%25L

@yuokada
Copy link
Author

yuokada commented Dec 9, 2022

I guess this issue is related to html rendering or is a CSS side issue.
The fluentd configuration is rendered with HTML tags. Because of it, multiple spaces are replaced with one space character.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant