# Coralogix

### 1. Include Zipy session url in the metadata.

Put below code in the \<head> tag of your site.&#x20;

```javascript
<script>
const getCurrentZipySessionURL = async () => {
  return await new Promise(function(resolve, reject) {
      let i = 0;
      const _interval = setInterval(() => {
          let zipySessionUrl = (window)?.zipy?.getCurrentSessionURL();
          
          if(zipySessionUrl){
              resolve(zipySessionUrl);
              clearInterval(_interval);
          }
          else{
              i++;
              if(i >= 4){
                reject("Some problem occured while loading zipy.");
                clearInterval(_interval);
              }
          }
      },1500);
  });
}


getCurrentZipySessionURL()
.then(zipySessionUrl => {
  window.CoralogixRum.setUserContext({
    user_metadata: {
      zipySessionUrl : zipySessionUrl
    }
  })
})
.catch((e) => {
    console.log(e);
});
</script>
```

After adding this code in your site you should be able to send Zipy session in Coralogix.

### 2. Find Zipy session url in Coralogix

Go to **Logs** screen and select **SEVERITY** from the panel. Then click on **Columns** from the toolbar at top.

<figure><img src="/files/OglLkDF7345VSjMclwi3" alt=""><figcaption></figcaption></figure>

A pop up will be opened, find the Zipy session url metadata field there by typing 'zipy'  in input area. Then drag the *zipy session url* metadata field from **Available Fields** to **In Use**. Then click on **Apply** button.

<figure><img src="/files/io2TVoD1LIVa1sLmskMk" alt=""><figcaption></figcaption></figure>

Now you should be able to see to Zipy session url in your Coralogix **Logs** screen.

<figure><img src="/files/JPsVOUEVbDZeaNSxXnj9" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.zipy.ai/integration/coralogix.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
