Label template for a link in a script field

Hello guys ,

Since i use multiple fields to create my url my script field return the value of the link . is there any way to put a in label template an emoji :grinning: instead of just some text. ?

Also when i click on the link i need to write the login and password to access the file is it possible in a script field to configure thats so i dont need to write the login and password each time?

Not sure what you mean here. Is it possible to share a screenshot that illustrates where you are having a problem with entering emojis?

If we are talking Basic Authentication, the way to achieve that is to encode the user name and password and provide them in the headers of the request. This means that it takes more than just putting something in the link. I'm not sure what kind of script field would help here.

There are two options you can consider:

  • If no authentication is needed for you Kibana visitors, you can point them to a proxy that bypasses the actual host and adds, the authentication headers to the requests before sending them to the host, so your URLs link to a resource that automatically pre-authenticates every request.
  • If the host allows an API key or auth token to be passed in the request path or query string, you could add the key or token in your URLs.

Adding the actual username and password to the URL would not be secure since it would show up in the logs, and anyone who's able to view the logs would have the power to impersonate that user. API keys and auth tokens are more secure because they can rotate often and have a built-in expiration time.

If you go with any of these suggestions, you should have security enabled in Kibana so that only authenticated users are able to view the links.

thanks a lot for your answer . i resoved the second point by adding the key to my url so i dont need to.
About the 1st point basicallly i want to have a download image:

or an emoji instead of just some text in the label template is it possible
heres a part of my script field:

Have you tried just copy/pasting an emoji character in the URL template?

I'm not sure which emoji you want to use for this, but it looks like I was able to get it working with the broccoli emoji:

1 Like

thank you :+1:

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.