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 · 1 comment · May be fixed by #8376
Open
2 of 3 tasks

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

wuchunfu opened this issue Nov 22, 2024 · 1 comment · May be fixed by #8376

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

Copy link

This issue has been automatically marked as stale because it has not had recent activity for 30 days. It will be closed in next 7 days if no further activity occurs.

@github-actions github-actions bot added the stale label Dec 24, 2024
@Hisoka-X Hisoka-X removed the stale label Dec 25, 2024
@Hisoka-X Hisoka-X linked a pull request Dec 25, 2024 that will close this issue
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants