how to pass multiple field values of a table to URL
where i am able to pass a single field value
http://example.com/{{rawValue}}/
but i want pass two field values to URL
is there any way for that to do.....?
Thanks
how to pass multiple field values of a table to URL
where i am able to pass a single field value
http://example.com/{{rawValue}}/
but i want pass two field values to URL
is there any way for that to do.....?
Thanks
@kabali12345 Using the URL Field formatter to do so isn't possible; however, you should be able to do so using Scripted Fields
Got it.
Thank you very much.
hii@Brandon_Kobel
can you please share some more details to me
@sravya the URL Field formatters work against a single Field in a document. However, you can use Scripted Fields to do more advanced logic, including string concatenation.
hello@Brandon_Kobel,
can you please elaborate and show me an example
@softec17 @sravya to create a Scripted Field, you select Management -> Index Patterns
And then Scripted Fields -> Add Scripted Field
If you create a scripted field with a Type of "string", a Format of "url" and the Script of: 'http://testwebsite.com/' + doc['geo.dest'].value + '/' + doc['geo.src'].value
it'll create a URL using two fields from the document
@softec17 that warning/error that you're seeing in Discover doesn't appear to be related to the Scripted Field, but because a shard failed when executing the query. If you remove the scripted field, do you still see the warning/error?
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
© 2020. All Rights Reserved - Elasticsearch
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant logo are trademarks of the Apache Software Foundation in the United States and/or other countries.