Create link from child log ID to parent log ID

Hello,

I’m using OpenSearch as a logger.
Inside the logger we have filed LogBagId.
In this field we can see the ID of current log and the ID’s of their parents.

I would like to have this field as link to his parent logs.

Have a hyperlink so that i can click on it and have it direct to the parent logs.

Is that’s possible?
Anyone did that?

Thank you,
Andrey

1 Like

Hey Andrey, just wanted to see if you meant that you wanted it to hyperlink so that you can click on it and have it direct you to the parent logs, or if you want it linked like in SQL so that the relationship is able to be queried?

Cheers,
David

Hi @dtaivpp ,
Yes this is exactly that i would like to achive:
“hyperlink so that you can click on it and have it direct you to the parent logs”

Thank you!

1 Like

Absolutely! This should be able to be done in OpenSearch Dashboards. You should likely be able to use a string field formatter

  1. On the main menu select “Stack Management” then “Index Patterns”
  2. Select which field you would like to edit and click the edit options
  3. Then click “Select Format” and enter the format for the field

You should likely have an option to create a URI format that you can use to link to the parent record/s.

2 Likes

Thank you @dtaivpp
It works.