# Setting Up Cribl with Aisera

The Cribl system has not been mapped to the Aisera GenAI platform by default, but you can still integrate your Cribl system with the Aisera GenAI Platform by following these instructions, to use a [**Generic Connector**](https://docs.aisera.com/aisera-platform/adding-data-to-your-tenant/integrations-and-data-sources/using-the-generic-connector) and webhooks.\
\
First set up Cribl as a data source in Aisera, and then use the Aisera token to set up Aisera as a data source in Cribl.

## Setting Up the Aisera Data Source

Use the following steps to set up Cribl as your Data Source, using a Generic Connector.

1. ### Setup the Integration

Create an integration using the Generic Connector to be utilized as a **Data Source**.

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXcq6wGdSKhJuV0IVFmaQXnFRUxoJzRjwUf9TdGIqaVX5wttb61KfJtaWzGDDUofXE0UTn307p2JoZBl5U-_XBtaaszYvunWV373nWswT5Pn_5nHGQc-VLbLOzVpY-8ayVfMnzqPD9-xntK3Nw3Lbx78MUBi?key=DgbTLR-YBjxlMj22Y6I9Ag" alt=""><figcaption></figcaption></figure>

2. ### Setup the Data Source

Create a Data Source using the integration set up in the previous step, and select the type of tickets you want to ingest via the webhook.

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXd7jRbUjkdNLWYFts-Pz6eKCNLicPwPNy1Xw9vr8Od_RQy1ZazNagNB2APR9kmInoScWJQLciSkIRfQn7D0z_WMQunnRRoIWnHpfBURE_xclPBX75RUE5xXUUjqmGlQZ7eNWDHi0iGydej1Ps4Vu-84Pq_t?key=DgbTLR-YBjxlMj22Y6I9Ag" alt=""><figcaption></figcaption></figure>

3. ### Setup Data Mappings

Update or clear the existing default field mappings to match the actual ticket data received by Aisera through the webhook. This ensures that the ticket data is correctly ingested into the appropriate fields, enabling proper analysis and other operations.

If you want to enable deduplication, set the correct fingerprint.

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXfIweVBWk84Wp9DFyKxlsw4MPSmS2nhgnUeZaFJpXGpgn1sBlayjNXc5o_a6XUgtpYSko-8K2-ig9YoO05Gkwl0CdRwRcv_q_I3Bwo81Mx4Wa8GEE3y4W4DprDpZRsXwl0yXEwePxtf922pRg_hmkq1Y9s?key=EOi2msyyAJe3PMt5vdIAgA" alt=""><figcaption></figcaption></figure>

4. ### Setup Pre-processing

   \
   If you need to process the input data before field mapping, such as detecting patterns or filtering specific tickets, you can prepare a configuration JS code and add it to the data source you just created.<br>

   <div align="left"><figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXehneMYMmodF1IDDOHlGCj7ofJsGMOO7LgXgYU-v3KGztxhIHWRqqbkKpr19SeLMpE7_h_U2Z9oET9Wr9fmWvhFO5-RziyPKitaH1eY7Y8TAuBZfg1azlyYVFrDSSPmcvbanwE8ToNRSoZqRHoL_mc5lGFw?key=DgbTLR-YBjxlMj22Y6I9Ag" alt="" width="563"><figcaption></figcaption></figure></div>
5. ### Setup Post Processing

   \
   If we want to analyze the response before applying field mappings and transform the data for easier ingestion as a ticket, we can use a transformation script as part of the data source settings.<br>

   <figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXdPZX6nJKSir_nRKgKrAgGQDRwNpj8dEGzYM3iBBlrXopkyo6tBBndQ7zOrj7V77g8GfkBDcY2fdJXQj9uZGvBQsAUY9mPIPT2kCZh4PttxZ8iCwznoNoWW714IQqKpkN4-2LLOzecptZcYcnxZPBUpV62Z?key=EOi2msyyAJe3PMt5vdIAgA" alt=""><figcaption></figcaption></figure>

## Setup the Authentication URL&#x20;

You can generate a webhook URL with Basic authentication using a Service Account in the Aisera platform and an x-app-token.

Click the following link to [**Create an Aisera Service Account**](https://docs.aisera.com/aisera-platform/adding-data-to-your-tenant/integrations-and-data-sources/connectors/broken-reference).

## Add the Aisera Source to Your Cribl System

### Find the source

1. Log in to the Cribl sandbox and go to the Cribl homepage, as shown below.<br>

   <div align="left"><figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXdLa-ruKcakQ85wCMKpC_8jlTBZL0m4lZrdHCVQ472Xjca50HXiZf79GTaxPg01RGvrq8Oh8jZ2cCGl5I2PcSNoiMHWsQwh6pNjgLBkn95nlCRXp6wD0DvSnhj30YWhrPQWcUHVSQCX68n-Fjeikth2NUed?key=EOi2msyyAJe3PMt5vdIAgA" alt="" width="563"><figcaption></figcaption></figure></div>
2. Navigate to the Cribl Stream page and choose the default or any available worker group. \
   Goto **Data -> Sources** to see the list of sources.
3. Goto **Data -> Sources** to see the list of sources.<br>

   <div align="left"><figure><img src="https://3281977978-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvBFXjH9S1CAy9f5hzg5Q%2Fuploads%2FuqO6JM6JTqnAskNN3s6Q%2Fimage.png?alt=media&#x26;token=10257714-d735-401d-a7ce-6e51b288fab4" alt="" width="563"><figcaption></figcaption></figure></div>
4. Find/Create the **Route**
5. Navigate to **Routing -> Quick Connect**, as shown below.\
   From this window, you can set up and configure multiple sources and destinations, as needed.<br>

   <div align="left"><figure><img src="https://3281977978-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvBFXjH9S1CAy9f5hzg5Q%2Fuploads%2F5F1HkZ63AXZRnbZlq5Ej%2Fimage.png?alt=media&#x26;token=86d7cb68-2dcc-49d3-8590-fd7ea873d68b" alt="" width="563"><figcaption></figcaption></figure></div>
6. Set up a **Webhook**.\
   Add a destination type called, 'Webhook', using the [authentication URL](#setup-the-authentication-url) generated by Aisera to create a webhook for the Event Listener:\
   \
   a) Add the Webhook URL (found under the ~~Cribl~~ **General Settings**)<br>

   <figure><img src="https://3281977978-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvBFXjH9S1CAy9f5hzg5Q%2Fuploads%2FfsPlE9XfJVq82pChbLj3%2Fimage.png?alt=media&#x26;token=a83a8af2-1e99-4193-afe6-1192825b14f7" alt=""><figcaption></figcaption></figure>

&#x20;       b) Add extra HTTP headers (found under Cribl **Advanced Settings**)

<figure><img src="https://3281977978-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvBFXjH9S1CAy9f5hzg5Q%2Fuploads%2FBPEjAemRE2LnNBFcTmXM%2Fimage.png?alt=media&#x26;token=2375026c-bb7b-4522-a893-589f9b1735ae" alt=""><figcaption></figcaption></figure>

You only need to configure the settings above as specified in the screenshots. All other settings can be configured according to your regular requirements.

## Testing Your Integration

1. Go to the **Cribl Destination > Configure** option and test the Webhook with a sample Alert/Ticket as shown below.<br>

   <figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXdvs6V_3FlEG9d-unuxIqKg-UUgtZRgTW9DSgpj7rRusbmje9FBrBYxb93pvneYnYc4AVbMqoXuQF4JWftaaGCGtf80ZA6-o8p-dY5dFc4Vtv9ktu9Nl8X0l77OvZk1pmXb25GcXWp5dobCdwNHPKtH7t3q?key=EOi2msyyAJe3PMt5vdIAgA" alt=""><figcaption></figcaption></figure>
2. Check whether the alert is ingested in the Aisera GenAI platform SOR by navigating to the **SOR > Tickets** window and filtering for the Data Source (per the following screenshot).\ <br>

   <figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXc_VnIxfzAhuQyCDiW7jF7gcgd1Dz6Sjz9WpkaoaPKdLMbTcqYaCR62gu3dPy8oWh-s-e1z5fqutsvrNJEyXCLliOViTxPS7hF0IhzNGwYKtYqp_tshEsyoQLR4D0FGWDxCo4awAWNx1LB4kYyR3UGf9Glm?key=DgbTLR-YBjxlMj22Y6I9Ag" alt=""><figcaption></figcaption></figure>

Cribl should appear as an SOR connection.

<figure><img src="https://3281977978-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvBFXjH9S1CAy9f5hzg5Q%2Fuploads%2FTGNStUSfSYoPRB7MTVUI%2Fimage.png?alt=media&#x26;token=df156372-8806-43ab-a5bf-81f5f45d2b9d" alt=""><figcaption></figcaption></figure>
