tomohiro / fluentular Goto Github PK
View Code? Open in Web Editor NEW:pencil: Fluentular is a Fluentd regular expression editor
Home Page: https://fluentular.herokuapp.com
License: MIT License
:pencil: Fluentular is a Fluentd regular expression editor
Home Page: https://fluentular.herokuapp.com
License: MIT License
Hey,
In one of my application i have time in format:
2018-03-01T13:02:03.443149+00:00
This format should be recognized by:
%Y-%m-%dT%H:%M:%S.%6N%z
But in your application i got error:
Error: invalid time format: value = 2018-03-01T13:02:03.443149+00:00, error_class = ArgumentError, error = invalid strptime format - '%Y-%m-%dT%H:%M:%S.%6N%z'
Problem is in %6N
part, which is not accepted, without this everything else is ok.
BR
Parasit
Any regex with # will actually fail because if it's not escaped. (since everything after # is a comment). You should probably probably auto-escape those as \x23
Regular Expression:
{\n "uuid": "(?<uuid>[a-f0-9\-]*)",\n},
Test String:
{
"uuid": "abcd",
},
The above does not give correct response, while the following Regular Expression works:
{
"uuid": "(?<uuid>[a-f0-9\-]*)",
},
http://fluentular.herokuapp.com/
Shows "Application Error"
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>.*)
The Fluentd v1 format requires all backslashes on regexes to be escaped, and that does not work on Fluentular.
I was testing this project (and it's pretty cool! - great job!) but it took me some time to get the right apache2 log message. It might be helpful to show one just so folks can see how it works? Anyway, you can close this issue if you don't think it's necessary, but I'm just thinking about the developer experience.
Without further ado -- I used this string:
127.0.0.1 - frank [10/Oct/2000:13:55:36 -0700] "GET /apache_pb.gif HTTP/1.0" 200 2326 "http://www.example.com/start.html" "Mozilla/4.08 [en] (Win98; I ;Nav)"
Which I found from Apache's HTTP Docs.
I hope this helps :)
When started with the latest docker image ,like:
$ docker pull tomohiro/fluentular:latest
$ docker run -d -p 8080:8080 tomohiro/fluentular:latest
The following error occurred:
/root is not writable.
Bundler will use ‘/tmp/bundler20211019-1-5wk8vt1’ as your home directory temporarily. ``bundler: command not found: rackup ``Install missing gem executables with bundle instal
tomohiro/fluentular:1.11.4 is ok。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.