# Report of blocked domains to be sent to you by email or download report

**URL:** <https://discourse.pi-hole.net/t/report-of-blocked-domains-to-be-sent-to-you-by-email-or-download-report/1767>\
**Category:** Feature Requests\
**Created:** [February 16, 2017, 10:38pm UTC](https://discourse.pi-hole.net/t/report-of-blocked-domains-to-be-sent-to-you-by-email-or-download-report/1767 "2017-02-16T22:38:06Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![jpgpi250](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/jpgpi250/32/286_2.png) [@jpgpi250](https://discourse.pi-hole.net/u/jpgpi250)\
**Post date:** [February 17, 2017, 7:20am UTC](https://discourse.pi-hole.net/t/report-of-blocked-domains-to-be-sent-to-you-by-email-or-download-report/1767/2 "2017-02-17T07:20:42Z")

</div>

Maybe this will suit your needs.  
I've already explained [here](https://discourse.pi-hole.net/t/send-logs-before-flushing/1254/7) how to send yesterdays log (log rotation is available now, so use the instructions for pihole.log.1) to yourself.  
By processing this log with some simple grep and sed commands, you can get the detailed information, redirect the output to a different file and mail it to yourself.  
example for ipv4 wildcards (change the ip address to match your own):

```auto
grep 192.168.2.250 /var/log/pihole.log.1 | grep config | sed 's/^.*]:/]:/' | sed 's/^[^:]*://g' | sort | uniq

```

example for for ipv4 gravity list (change the ip address to match your own):

```auto
grep 192.168.2.250 /var/log/pihole.log.1 | grep gravity.list | sed 's/^.*]:/]:/' | sed 's/^[^:]*://g' | sort | uniq

```

I'm quite sure some people can come up with better grep/sed combinations, I'm not an expert.

---

_[View the full topic](https://discourse.pi-hole.net/t/report-of-blocked-domains-to-be-sent-to-you-by-email-or-download-report/1767)._
