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

String interpolation and static strings with shift operation #96

Open
timothyj-splunk opened this issue Jun 11, 2019 · 0 comments
Open

Comments

@timothyj-splunk
Copy link

timothyj-splunk commented Jun 11, 2019

Great work here!
Is there a way to build strings (ala go fmt.Sprintf or other interpolation) in the shift operation? Something simpler that concat.

I'm looking for a mix of "value" fields (that preserve the selected values' type) and "interpolated string fields" (that are always strings and may be simple static strings).

Like this perhaps:

Transform (note the '):

{
  "outputField": [ "'some-prefix-", "input.value" ]
}

Input:

{
  "input": { "value": 47 }
}

Output:

{
  "outputField": "some-prefix-47"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant