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

[Feature][ALL] Global add grok expression support #8103

Open
2 of 3 tasks
wuchunfu opened this issue Nov 22, 2024 · 0 comments
Open
2 of 3 tasks

[Feature][ALL] Global add grok expression support #8103

wuchunfu opened this issue Nov 22, 2024 · 0 comments

Comments

@wuchunfu
Copy link
Member

Search before asking

  • I had searched in the feature and found no similar feature requirement.

Description

For example, if you want to filter files that meet the conditions under a certain date path, although you can use regular expressions to achieve this, it is relatively cumbersome.

Example file path

/data/input_data/beijing/20241111/103_20241110141500_000.csv
/data/input_data/beijing/20241112/103_20241120141500_000.csv

Input the path grok expression, such as

/data/input_data/%{NOTSPACE:area}/%{YEAR:folderYear}%{MONTHNUM:folderMonth}%{MONTHDAY:folderDay}/%{BASE16NUM:prefix}_%{YEAR:year}%{MONTHNUM:month}%{MONTHDAY:day}%{HOUR:hour}%{MINUTE:minute}%{SECOND:second}_%{BASE16NUM:suffix}.csv

The output path can use the variables in the input path, such as

/data/output_data/${area}/${folderYear}${folderMonth}${folderDay}/${prefix}_${year}${month}${day}${hour}${minute}${second}_${suffix}.csv

Usage Scenario

No response

Related issues

No response

Are you willing to submit a PR?

  • Yes I am willing to submit a PR!

Code of Conduct

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

No branches or pull requests

1 participant