# Rename field winlog.event\_data.TargetUserName

**URL:** <https://discuss.elastic.co/t/rename-field-winlog-event-data-targetusername/218345>\
**Category:** Logstash\
**Created:** [February 7, 2020, 12:20pm UTC](https://discuss.elastic.co/t/rename-field-winlog-event-data-targetusername/218345 "2020-02-07T12:20:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![shortcommand](https://avatars.discourse-cdn.com/v4/letter/s/50afbb/32.png) [@shortcommand](https://discuss.elastic.co/u/shortcommand)\
**Post date:** [February 7, 2020, 12:20pm UTC](https://discuss.elastic.co/t/rename-field-winlog-event-data-targetusername/218345/1 "2020-02-07T12:20:42Z")

</div>

Hi,

I'm running ELK stack with winlogbeat and I would like to change the name of the field winlog.event\_data.TargetUserName.

![image](https://us1.discourse-cdn.com/elastic/original/3X/e/7/e7f11794ada4ab141fce54c3902248b7e8d457d6.png)

Currently I've put this in my logstash config:

> filter{
> 
> if [winlog][event\_data][TargetUserName]  
> {  
> mutate {  
> rename =\> { "winlog.event\_data.TargetUserName" =\> "User" }  
> }  
> }  
> }

However, when I run logstash it doesnt seem to do anything. The field doesn't get renamed (as far as I can see in Kibana) and logstash runs just as normal.

Any pointers would be greatly appreciated!

//Rasmus

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [February 7, 2020, 2:16pm UTC](https://discuss.elastic.co/t/rename-field-winlog-event-data-targetusername/218345/2 "2020-02-07T14:16:42Z")

</div>

> [@shortcommand](#):
>
> rename =\> { "winlog.event\_data.TargetUserName" =\> "User" }

Try

```
rename => { "[winlog][event_data][TargetUserName]" => "User" }

```

---

<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 6, 2020, 2:16pm UTC](https://discuss.elastic.co/t/rename-field-winlog-event-data-targetusername/218345/3 "2020-03-06T14:16:46Z")

</div>

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