# Fields don't show up when events are published

**URL:** <https://discuss.elastic.co/t/fields-dont-show-up-when-events-are-published/294722>\
**Category:** Beats\
**Tags:** winlogbeat\
**Created:** [January 18, 2022, 5:40pm UTC](https://discuss.elastic.co/t/fields-dont-show-up-when-events-are-published/294722 "2022-01-18T17:40:05Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![a11](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/a11/32/100458_2.png) [@a11](https://discuss.elastic.co/u/a11)\
**Post date:** [January 18, 2022, 5:40pm UTC](https://discuss.elastic.co/t/fields-dont-show-up-when-events-are-published/294722/1 "2022-01-18T17:40:05Z")

</div>

Hi all,

I'm struggling with a windows event to publish.  
Event xml below, strongs fields aren't publish by Winlogbeat.

```auto
- <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
- <System>
  <Provider Name="Microsoft-Windows-CertificateServicesClient-Lifecycle-System" Guid="{bc0669e1-a10d-4a78-834e-1ca3c806c93b}" /> 
  <EventID>1003</EventID> 
  <Version>0</Version> 
  <Level>3</Level> 
  <Task>0</Task> 
  <Opcode>0</Opcode> 
  <Keywords>0x8000000000000000</Keywords> 
  <TimeCreated SystemTime="2021-10-16T16:02:39.728582800Z" /> 
  <EventRecordID>167</EventRecordID> 
  <Correlation /> 
  <Execution ProcessID="140" ThreadID="2436" /> 
  <Channel>Microsoft-Windows-CertificateServicesClient-Lifecycle-System/Operational</Channel> 
  <Computer>server.exemple.local</Computer> 
  <Security UserID="S-0" /> 
  </System>
***- <UserData>***
 ***- <CertNotificationData ProcessName="taskhostw.exe" AccountName="exemple\server$" Context="Machine">***
 ***- <CertificateDetails Thumbprint="11d11">***
 ***<Template Name="Template Name" OID="1.0.0" />***
 ***- <SubjectNames>***
 ***<SubjectName>CN=server.exemple.local</SubjectName>***
 ***<SubjectName>server.exemple.local</SubjectName>***
 ***<SubjectName>server</SubjectName>***
 ***<SubjectName>exemple.local</SubjectName>***
 ***</SubjectNames>***
 ***- <EKUs>***
 ***<EKU Name="Server Authentication" OID="1.3.6.1.5.5.7.3.1" />***
 ***<EKU Name="Client Authentication" OID="1.3.6.1.5.5.7.3.2" />***
 ***</EKUs>***
 ***<NotValidAfter>2021-10-16T16:07:44Z</NotValidAfter>***
 ***</CertificateDetails>***
 ***</CertNotificationData>***
 ***</UserData>***
  </Event>

```

Winlogbeat DEBUG:

```auto
2022-01-18T17:45:31.940+0100 DEBUG [processors] processing/processors.go:203 Publish event: {
  "@timestamp": "2021-09-24T08:02:33.486Z",
  "@metadata": {
    "beat": "winlogbeat",
    "type": "_doc",
    "version": "7.13.4"
  },
  "event": {
    "code": "1003",
    "kind": "event",
    "provider": "Microsoft-Windows-CertificateServicesClient-Lifecycle-System",
    "created": "2022-01-18T16:45:31.940Z"
  },
  "message": "A certificate is about to expire. Please refer to the \"Details\" section for more information
  "fields": {
    "env": "DEV",
  },
  "log": {
    "level": "warning"
  },
  "host": {
    "name": "server.exemple.com"
  },
  "winlog": {
    "channel": "Microsoft-Windows-CertificateServicesClient-Lifecycle-System/Operational",
    "user": {
      "domain": "NT AUTHORITY",
      "name": "SYSTEM",
      "type": "User",
      "identifier": "S-1-5-18"
    },
    "provider_name": "Microsoft-Windows-CertificateServicesClient-Lifecycle-System",
    "record_id": 75,
    "opcode": "Info",
    "api": "wineventlog",
    "computer_name": "server.exemple.com",
    "provider_guid": "{b}",
    "process": {
      "pid": 4168,
      "thread": {
        "id": 4700
      }
    },
    "event_id": "1003"
  },
  "tags": [
    "type1"
  ],
  "ecs": {
    "version": "1.9.0"
  },
  "agent": {
    "ephemeral_id": "463f0e5c-3deb-4255-8387-7db955fe96d6",
    "id": "30be004e-1fa6-48ab-b276-de6903d55376",
    "name": "SERVER",
    "type": "winlogbeat",
    "version": "7.13.4",
    "hostname": "SERVER"
  }
}

```

Winlogbeat conf:

```auto
winlogbeat.event_logs:
  - name: Microsoft-Windows-CertificateServicesClient-Lifecycle-System/Operational
    event_id: 1002,1003

```

---

<div class="post-metadata">

**Author:** ![legoguy1000](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/legoguy1000/32/54301_2.png) [@legoguy1000](https://discuss.elastic.co/u/legoguy1000)\
**Post date:** [January 19, 2022, 4:03am UTC](https://discuss.elastic.co/t/fields-dont-show-up-when-events-are-published/294722/2 "2022-01-19T04:03:21Z")

</div>

The logs show it's being published. Are u saying that it's not in Elasticsearch? What's ur output config?

---

<div class="post-metadata">

**Author:** ![mazoutte](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mazoutte/32/120188_2.png) [@mazoutte](https://discuss.elastic.co/u/mazoutte)\
**Post date:** [January 19, 2022, 11:31am UTC](https://discuss.elastic.co/t/fields-dont-show-up-when-events-are-published/294722/3 "2022-01-19T11:31:07Z")

</div>

Hello,

I will give more infos on this topic.  
Some events to track certificates expiration/renewal are published by winlogbeat but incomplete.

On the windows event viewer you can see in the XML all the fields.  
The event is published, but some fields are missing - they are noted in bold in the **UserData** section.

The event is published but the interesting fields are not published by the winlogbeat Agent.

Maybe there is something with the declaration of these fields in the fields.yml ; I don't see anything related to the missing fields...

ELK : 7.16.2 + Kafka.  
Winlogbeat : 7.13.4

---

<div class="post-metadata">

**Author:** ![a11](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/a11/32/100458_2.png) [@a11](https://discuss.elastic.co/u/a11)\
**Post date:** [January 19, 2022, 4:01pm UTC](https://discuss.elastic.co/t/fields-dont-show-up-when-events-are-published/294722/5 "2022-01-19T16:01:36Z")

</div>

Thanks for clarification... It is published but incomplete.

---

<div class="post-metadata">

**Author:** ![mazoutte](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mazoutte/32/120188_2.png) [@mazoutte](https://discuss.elastic.co/u/mazoutte)\
**Post date:** [January 21, 2022, 3:24pm UTC](https://discuss.elastic.co/t/fields-dont-show-up-when-events-are-published/294722/6 "2022-01-21T15:24:37Z")

</div>

Hello,

Anyone has an idea to have the missing Fields published by winlogbeat to Elasticsearch ?

The doc [Winlogbeat fields | Winlogbeat Reference [7.16] | Elastic](https://www.elastic.co/guide/en/beats/winlogbeat/current/exported-fields-winlog.html) is mentioning :  
_`event.original`_  
_The raw XML representation of the event obtained from Windows. This field is only available on operating systems supporting the Windows Event Log API (Microsoft Windows Vista and newer). This field is not included by default and must be enabled by setting `include_xml: true` as a configuration option for an individual event log. **The XML representation of the event is useful for troubleshooting purposes. The data in the fields reported by Winlogbeat can be compared to the data in the XML to diagnose problems** _

The missing fields are not shipped in Elastic , but are present in the XML :

```auto
- <UserData>
- <CertNotificationData ProcessName="taskhostw.exe" AccountName="exemple\server$" Context="Machine">
- <CertificateDetails Thumbprint="11d11">
  <Template Name="Template Name" OID="1.0.0" /> 
- <SubjectNames>
  <SubjectName>CN=server.exemple.local</SubjectName> 
  <SubjectName>server.exemple.local</SubjectName> 
  <SubjectName>server</SubjectName> 
  <SubjectName>exemple.local</SubjectName> 
  </SubjectNames>
- <EKUs>
  <EKU Name="Server Authentication" OID="1.3.6.1.5.5.7.3.1" /> 
  <EKU Name="Client Authentication" OID="1.3.6.1.5.5.7.3.2" /> 
  </EKUs>
  <NotValidAfter>2021-10-16T16:07:44Z</NotValidAfter> 
  </CertificateDetails>
  </CertNotificationData>
  </UserData>

```

Any Clue to have the missing fields published ?

---

<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 18, 2022, 5:24pm UTC](https://discuss.elastic.co/t/fields-dont-show-up-when-events-are-published/294722/7 "2022-02-18T17:24:42Z")

</div>

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