Giter Site home page Giter Site logo

tomohiro / fluentular Goto Github PK

View Code? Open in Web Editor NEW
184.0 184.0 19.0 771 KB

:pencil: Fluentular is a Fluentd regular expression editor

Home Page: https://fluentular.herokuapp.com

License: MIT License

Ruby 94.36% Dockerfile 5.64%
docker fluentd heroku ruby

fluentular's People

Contributors

dependabot-preview[bot] avatar dependabot-support avatar dependabot[bot] avatar deppbot avatar dieu avatar repeatedly avatar tomohiro avatar y-ken avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

fluentular's Issues

Errors in time format parsing

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

Should escape # characters

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

\n in regular expression is not working

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\-]*)",
},

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

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

Fluentd v1 format

The Fluentd v1 format requires all backslashes on regexes to be escaped, and that does not work on Fluentular.

Display a test apache2 log msg to demonstrate the data inspector

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 :)

Latest docker image failed to start

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。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.