# Unable to send CSV data through email notification

**URL:** <https://discuss.elastic.co/t/unable-to-send-csv-data-through-email-notification/160867>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-alerting\
**Created:** [December 14, 2018, 9:37am UTC](https://discuss.elastic.co/t/unable-to-send-csv-data-through-email-notification/160867 "2018-12-14T09:37:44Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![priya08](https://avatars.discourse-cdn.com/v4/letter/p/2bfe46/32.png) [@priya08](https://discuss.elastic.co/u/priya08)\
**Post date:** [December 14, 2018, 9:37am UTC](https://discuss.elastic.co/t/unable-to-send-csv-data-through-email-notification/160867/1 "2018-12-14T09:37:44Z")

</div>

Hi Team,

I am unable to send the email notification with kibana generated CSV report actual data , its having some meta data information like index name and other columns name .  
I am using below reqeust ,

PUT \_xpack/watcher/watch/ReportCSVWithOutData

{

"trigger": {

```
"schedule": {

  "interval": "1h"

}

```

},

"actions": {

```
"email_admin": {

  "email": {

    "to": "'abc@abc.com'",

    "subject" : "abc",

    "body" : "abc",

    "attachments": {

      "errorReport_attachment.csv": {

        "http": {

          "content_type": "application/pdf",

          "request": {

            "method": "POST",

            "headers": {

              "kbn-xsrf": "reporting"

            },

            "read_timeout": "300s",

            "scheme": "http",

            "url": "CSV Generated url"

          }

        }

      }

    }

  }

}

```

}

}

I am using elk 6.4.3V .

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [December 14, 2018, 2:26pm UTC](https://discuss.elastic.co/t/unable-to-send-csv-data-through-email-notification/160867/2 "2018-12-14T14:26:03Z")

</div>

hey,

you should use the [reporting attachment](https://www.elastic.co/guide/en/elastic-stack-overview/6.5/actions-email.html) within the email action. This currently also supports only PDF, but not CSV.

--Alex

---

<div class="post-metadata">

**Author:** ![priya08](https://avatars.discourse-cdn.com/v4/letter/p/2bfe46/32.png) [@priya08](https://discuss.elastic.co/u/priya08)\
**Post date:** [December 17, 2018, 7:37am UTC](https://discuss.elastic.co/t/unable-to-send-csv-data-through-email-notification/160867/3 "2018-12-17T07:37:50Z")

</div>

Thanks Alex.  
One query in PDF entire report is not coming , only first screen captured (for example : in my report i am having 50 rows , but in PDF its showing only first page only approximately 10 rows)

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [January 7, 2019, 9:31am UTC](https://discuss.elastic.co/t/unable-to-send-csv-data-through-email-notification/160867/4 "2019-01-07T09:31:02Z")

</div>

is the PDF fully rendered if you trigger it within kibana?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [February 4, 2019, 9:31am UTC](https://discuss.elastic.co/t/unable-to-send-csv-data-through-email-notification/160867/5 "2019-02-04T09:31:07Z")

</div>

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