# Export Flow Builder Logs

The feature of manual [Logs](https://support.messagebird.com/hc/en-us/articles/9230747907089-Flow-Builder-Logs) export, combined with the [Search and Filtering feature](https://support.messagebird.com/hc/en-us/articles/9481662352017), enables you to download a CSV table of invocations from a desired Flow.

#### Table of contents <a href="#id-01gg9nskm6vs82zrnmba7mszbx" id="id-01gg9nskm6vs82zrnmba7mszbx"></a>

* [Manual Logs Export](#01GF60TD5VQ31M57MT701AQWS0)
* [How to make the most out of your Logs export](#01GG9NSKM6EE3BHDZT3KE4CG8H)

#### Before getting started <a href="#h_01g1geszhahn77945r03rv1na9" id="h_01g1geszhahn77945r03rv1na9"></a>

You will need:

* A [MessageBird account](https://dashboard.messagebird.com/)

#### Manual Logs Export <a href="#id-01gf60td5vq31m57mt701aqws0" id="id-01gf60td5vq31m57mt701aqws0"></a>

To export the logs of your invocations:

1. Visit the Logs page of your Flow of choice:

   <figure><img src="https://675349995-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUJNEE9TMK4fU91VKstBr%2Fuploads%2Fgit-blob-7ca5c6e6c085b7b505cf53e165845b89faf03c83%2F9975992639249?alt=media" alt=""><figcaption></figcaption></figure>

   <br>
2. Filter out the invocations you would like to export:

   <figure><img src="https://675349995-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUJNEE9TMK4fU91VKstBr%2Fuploads%2Fgit-blob-2e02aa938f2763a1282e4c54cc76612b9448ec06%2F9976119177361?alt=media" alt=""><figcaption></figcaption></figure>
3. Click on *Export Logs*:

   <figure><img src="https://675349995-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUJNEE9TMK4fU91VKstBr%2Fuploads%2Fgit-blob-446957af9bae0e4d0eba0789f211c71ac0efc37d%2F9976180492305?alt=media" alt=""><figcaption></figcaption></figure>
4. An additional menu will pop up:

   <figure><img src="https://675349995-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUJNEE9TMK4fU91VKstBr%2Fuploads%2Fgit-blob-5335719729b5c427952e2fce76c11db6ac43bcc4%2F9976235757969?alt=media" alt=""><figcaption></figcaption></figure>

* You will see the **email address** where the export link will be sent to
* You will be able to select the **type of CSV separator**:
  * comma (,)
  * semicolon (;)
  * or pipe (|)
* You will be able to choose **which variables** you want **to export**:
  * You can select all available variables, system, and custom ones. Variables listed here are from the invocations visible on the Logs page. This list might not contain all the variables. For specific variables, type in the variable name manually: **this is a gif:**

    <figure><img src="https://675349995-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUJNEE9TMK4fU91VKstBr%2Fuploads%2Fgit-blob-619c9d2d671279d068011e52cf8291add9edbca9%2F9976727320849?alt=media" alt=""><figcaption></figcaption></figure>
  * Once you click on *Export*, you will receive an email to the email tied to your MessageBird account containing a link and the URL of the export. By clicking on any of them, you can download the CSV file to your device:

    <figure><img src="https://675349995-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUJNEE9TMK4fU91VKstBr%2Fuploads%2Fgit-blob-d983e5a1f5675b0d59fc38e93d9daf7ff70373a0%2F9976897884433?alt=media" alt=""><figcaption></figcaption></figure>

📝 Make sure you are **logged in to your MessageBird account** when downloading the export and have in mind that it might take some minutes for the file to be generated and sent to your email, depending on the number of invocations and variables you have selected.

#### How to make the most out of your Logs export <a href="#id-01gg9nskm6ee3bhdzt3ke4cg8h" id="id-01gg9nskm6ee3bhdzt3ke4cg8h"></a>

Here are some tips on how to get key meaningful insights from your export:

**Checking how long an invocation has lasted**

* In the downloaded logs export, compare the `createdAt` and `updatedAt` columns
  * `createdAt` indicates when an invocation has started
  * `updatedAt` indicates the last event on an invocation
* The time passed between the two timestamps will showcase the length of an invocation

**Excluding unregistered contacts on WhatsApp from your WhatsApp sending list**

The *error code 302* on WhatsApp means that a *contact is not registered on WhatsApp* and is not using the app.

To avoid sending traffic towards such numbers:

* navigate to column`variable_message.error`in the exported CSV table and filter by error code 302
* remove those contacts from your WhatsApp sending list

📤  Feel free to [contact our Support](https://support.messagebird.com/hc/en-us/requests/new) in case you might need some help!
