# Solution to get Account actually looked out in AD

**URL:** <https://discuss.elastic.co/t/solution-to-get-account-actually-looked-out-in-ad/166332>\
**Category:** Logstash\
**Created:** [January 30, 2019, 10:32am UTC](https://discuss.elastic.co/t/solution-to-get-account-actually-looked-out-in-ad/166332 "2019-01-30T10:32:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Thibaut603](https://avatars.discourse-cdn.com/v4/letter/t/e274bd/32.png) [@Thibaut603](https://discuss.elastic.co/u/Thibaut603)\
**Post date:** [January 30, 2019, 10:32am UTC](https://discuss.elastic.co/t/solution-to-get-account-actually-looked-out-in-ad/166332/1 "2019-01-30T10:32:57Z")

</div>

Hello,

i'm student and for my final test i need to implemant elk (elastic, kibana, logstash, winlogbeat )  
And i want to get all accounts who are curently looked out.  
I things the solution is a script on AD to get this info and send it to logstash but i would to know if is the only or best solution.

Thx for help

---

<div class="post-metadata">

**Author:** ![pjanzen](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pjanzen/32/13756_2.png) [@pjanzen](https://discuss.elastic.co/u/pjanzen)\
**Post date:** [January 30, 2019, 10:37am UTC](https://discuss.elastic.co/t/solution-to-get-account-actually-looked-out-in-ad/166332/2 "2019-01-30T10:37:58Z")

</div>

The only application who knows who is locked out is the AD server it self.  
Options:

1. Create a script that queries the AD and filters on the account status and send that over.
2. You create a ldif from the AD and load that via logstash into elasticsearch.

I would go with the first option..

---

<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 27, 2019, 10:38am UTC](https://discuss.elastic.co/t/solution-to-get-account-actually-looked-out-in-ad/166332/3 "2019-02-27T10:38:05Z")

</div>

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