# Winlogbeat.yml should specify the "api" attribute is available

**URL:** https://discuss.elastic.co/t/winlogbeat-yml-should-specify-the-api-attribute-is-available/77079
**Category:** Beats
**Tags:** winlogbeat
**Created:** [March 2, 2017, 3:10am UTC](https://discuss.elastic.co/t/winlogbeat-yml-should-specify-the-api-attribute-is-available/77079 "2017-03-02T03:10:16Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![procule](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/procule/32/15962_2.png) [@procule](https://discuss.elastic.co/u/procule)
#### Post date: [March 2, 2017, 3:10am UTC](https://discuss.elastic.co/t/winlogbeat-yml-should-specify-the-api-attribute-is-available/77079/1 "2017-03-02T03:10:16Z")

</div>

Hi,

After two days of attempting to change the code of Winlogbeat to access the logs of a remote SAN integrating the Windows Event Log API, I realized that the SAN was using the old "eventlogging" API.

While trying to integrate the old "eventlogging" API, I found out that in the "winlogbeat/eventlog/factory.go" file, there are keys to specify which API you want to use: "eventlog" and "eventlogging", which are the old API and the "new" API.

After adding that in "winlogbeat.yml", I succeeded to received the logs:

```
winlogbeat.event_logs:
  - name: Security
    api: eventlogging

```

However, I had to change the code in "eventlogging.go" to add the option to use "OpenEventLog" for remote logs. I will create another topic about that.

O.

---

<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: [March 30, 2017, 3:10am UTC](https://discuss.elastic.co/t/winlogbeat-yml-should-specify-the-api-attribute-is-available/77079/2 "2017-03-30T03:10:26Z")

</div>

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