# Shield Audit Logstash Pattern?

**URL:** <https://discuss.elastic.co/t/shield-audit-logstash-pattern/33887>\
**Category:** Logstash\
**Created:** [November 5, 2015, 4:04pm UTC](https://discuss.elastic.co/t/shield-audit-logstash-pattern/33887 "2015-11-05T16:04:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bobby\_Pilot](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bobby_pilot/32/1186_2.png) [@Bobby\_Pilot](https://discuss.elastic.co/u/Bobby_Pilot)\
**Post date:** [November 5, 2015, 4:04pm UTC](https://discuss.elastic.co/t/shield-audit-logstash-pattern/33887/1 "2015-11-05T16:04:31Z")

</div>

Before I go create my own, is there a published logstash grep pattern for Shield audit logs? The audit message is published like so for us at the INFO level:

> [2015-11-05 09:33:58,959][INFO][shield.audit.logfile] [esprod-masterclient00] [transport] [access\_granted]\torigin\_type=[rest], origin\_address=[/10.50.4.6:40433], principal=[search\_admin], action=[indices:data/write/index], indices=[category]

Each log level obviously adds and removes fields from the message so its a little work get them all accounted for. Hoping someone has already done it and willing to share? 😄

---

<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:** [July 6, 2017, 5:23am UTC](https://discuss.elastic.co/t/shield-audit-logstash-pattern/33887/2 "2017-07-06T05:23:48Z")

</div>

Closed on July 6, 2017, 5:23am UTC


