# Winlogbeats path based on date

**URL:** https://discuss.elastic.co/t/winlogbeats-path-based-on-date/270161
**Category:** Beats
**Tags:** winlogbeat
**Created:** [April 15, 2021, 12:49am UTC](https://discuss.elastic.co/t/winlogbeats-path-based-on-date/270161 "2021-04-15T00:49:37Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![witkacy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/witkacy/32/86869_2.png) [@witkacy](https://discuss.elastic.co/u/witkacy)
#### Post date: [April 15, 2021, 12:49am UTC](https://discuss.elastic.co/t/winlogbeats-path-based-on-date/270161/1 "2021-04-15T00:49:38Z")

</div>

Hello,

Is it possible put result logs to file/folder with name based on actual time?

So that for each day I would have separate folder with logs like

c:/tmp/20210415/logFile1...  
c:/tmp/20210416/logFile1...  
c:/tmp/20210417/logFile1...

```auto
winlogbeat.event_logs:
  - name: test
    ignore_older: 1h
    processors:
      - drop_fields:
            fields: ["host", "log", "event", "winlog"]
      - drop_event:
            when:
                not:
                    contains:
                        message: StatusCode=200 OK
      
setup.template.settings:

setup.kibana:

output.file:
  path: "C:/tmp/test_log_new" 
  filename: winlogbeat

```

---

<div class="post-metadata">

### Author: ![mtojek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mtojek/32/63863_2.png) [@mtojek](https://discuss.elastic.co/u/mtojek)
#### Post date: [April 15, 2021, 8:35am UTC](https://discuss.elastic.co/t/winlogbeats-path-based-on-date/270161/2 "2021-04-15T08:35:04Z")

</div>

I'm afraid that you have to configure a custom logrotation mechanism, additionally to filebeat or simply push your data further to ES.

---

<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: [May 13, 2021, 10:35am UTC](https://discuss.elastic.co/t/winlogbeats-path-based-on-date/270161/3 "2021-05-13T10:35:53Z")

</div>

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