-
Notifications
You must be signed in to change notification settings - Fork 2
Support Fixed length extraction #6
Comments
+1 to adding the ability for fixed length keys. I would suggest to use
for example:
|
yes |
Hi @ph @jakelandis It looks like a community user is trying to address this enhancement via elastic/beats#17191. I'm not familiar with this repo so I have a couple of questions:
|
@ycombinator thanks for the ping on that, @vjsamuel did message me for that because the PR is created from a colleague at eBay and I had an early previous of the diff, I believe what you are proposing is OK, accept that PR get it merged and update the documentation in this repository to reflect the change and keep the issue open on this repository until all implementation is done. @jakelandis and @jsvd can you take the lead to create the issues for the implementation in Elasticsearch and Logstash? |
Looking at the tests I think its safe addition to our syntax. |
ES issue logged: elastic/elasticsearch#55273 |
Take the following string
A0118
, TheA
represents the message class, the01
is the month and18
is the day. In the current dissect syntax there is no way to define fixed length keys, theses extraction should be O(n).Suggested syntax:
where N is a positive number for the number of chars to extract for the key.
The text was updated successfully, but these errors were encountered: