# Event.Module (Auditd) for Auditbeat

**URL:** https://discuss.elastic.co/t/event-module-auditd-for-auditbeat/348716
**Category:** Beats
**Tags:** beats-module, auditbeat
**Created:** [December 6, 2023, 12:40pm UTC](https://discuss.elastic.co/t/event-module-auditd-for-auditbeat/348716 "2023-12-06T12:40:15Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![tagba](https://avatars.discourse-cdn.com/v4/letter/t/dbc845/32.png) [@tagba](https://discuss.elastic.co/u/tagba)
#### Post date: [December 6, 2023, 12:40pm UTC](https://discuss.elastic.co/t/event-module-auditd-for-auditbeat/348716/1 "2023-12-06T12:40:15Z")

</div>

Am trying to monitor logs in with Auditbeat version 7.4. specifically the auditd module.I have created a yml file to send send the logs to logstash. please how do I extract the time and date of each event in the auditd module.  
I tried this code

```auto
auditbeat.modules:
- module: auditd
  log:
    enabled: true
  ...
  processors:
    - date:
        field: event.timestamp
        target_field: custom_timestamp
        formats:
          - 'UNIX'
        timezone: 'UTC

```

but it did not work out because the date pre-processor does not exist. Do I have to create one and if yes how do I do it.

Thanks once more for you fast response

---

<div class="post-metadata">

### Author: ![andrewkroh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrewkroh/32/3784_2.png) [@andrewkroh](https://discuss.elastic.co/u/andrewkroh)
#### Post date: [December 6, 2023, 2:05pm UTC](https://discuss.elastic.co/t/event-module-auditd-for-auditbeat/348716/2 "2023-12-06T14:05:07Z")

</div>

What are you trying to accomplish?

The timestamp of the event is stored in the `@timestamp` field and does not need to be processed as it is already a valid time object internally.

- [Base Fields | Elastic Common Schema (ECS) Reference [8.11] | Elastic](https://www.elastic.co/guide/en/ecs/current/ecs-base.html#field-timestamp)
- [Define processors | Auditbeat Reference [8.11] | Elastic](https://www.elastic.co/guide/en/beats/auditbeat/current/defining-processors.html)

---

<div class="post-metadata">

### Author: ![tagba](https://avatars.discourse-cdn.com/v4/letter/t/dbc845/32.png) [@tagba](https://discuss.elastic.co/u/tagba)
#### Post date: [December 6, 2023, 2:28pm UTC](https://discuss.elastic.co/t/event-module-auditd-for-auditbeat/348716/3 "2023-12-06T14:28:44Z")

</div>

Hi Andrew,  
Thanks for your quick response  
the auditd module unlike system module has no timestamp like "event.start" or "event.end" field. The @timestamp is the one built in by logstash. For the auditd logs the "msg" has the time component as shown

```auto
type=SYSCALL msg=audit(1234874638.599:5207): arch=c000003e syscall=2 
success=yes exit=4 a0=62fb60 a1=0 a2=31 a3=0 items=1 ppid=25400 pid

```

How do i extract this component and include it under the processor in the yml file configuration file of Auditbeat modules.

---

<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: [January 3, 2024, 4:29pm UTC](https://discuss.elastic.co/t/event-module-auditd-for-auditbeat/348716/4 "2024-01-03T16:29:07Z")

</div>

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