# My translate config isn't working

**URL:** <https://discuss.elastic.co/t/my-translate-config-isnt-working/118102>\
**Category:** Logstash\
**Created:** [February 1, 2018, 8:40pm UTC](https://discuss.elastic.co/t/my-translate-config-isnt-working/118102 "2018-02-01T20:40:31Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jhashman](https://avatars.discourse-cdn.com/v4/letter/j/ecd19e/32.png) [@jhashman](https://discuss.elastic.co/u/jhashman)\
**Post date:** [February 1, 2018, 8:40pm UTC](https://discuss.elastic.co/t/my-translate-config-isnt-working/118102/1 "2018-02-01T20:40:31Z")

</div>

```
filter {
if [eventlog_category] == "Directory Service Changes" {
	ruby {
		code => "event.set('gpo_guid', event.get('ObjectDN')[4..39])"
	}
	translate {
		field => "gpo_guid"
		destination => "gpo_name"
		dictionary_path => "D:/ELK/logstash-5.6.5/yaml/gpo_guid.yaml"
	}
}

```

}

The config above for translate is not creating the new field gpo\_name any ideas why? I don't see any errors in the logstash log and I do see that logstash is periodically refreshing the dictionary file.

An example entry in gpo\_guid.yaml is below:

```
"edf5c692-6005-4899-af86-41b3f36545f0" : "Copy of MS_Office_2000"
```

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [February 1, 2018, 8:50pm UTC](https://discuss.elastic.co/t/my-translate-config-isnt-working/118102/2 "2018-02-01T20:50:56Z")

</div>

Is it pulling the `gpo_guid` field from the event?

---

<div class="post-metadata">

**Author:** ![jhashman](https://avatars.discourse-cdn.com/v4/letter/j/ecd19e/32.png) [@jhashman](https://discuss.elastic.co/u/jhashman)\
**Post date:** [February 2, 2018, 4:18am UTC](https://discuss.elastic.co/t/my-translate-config-isnt-working/118102/3 "2018-02-02T04:18:52Z")

</div>

> [@jhashman](#):
>
> edf5c692-6005-4899-af86-41b3f36545f0

Yep it is pulling the gpo\_guid field and adding it to the index. It shows up unquoted.

edf5c692-6005-4899-af86-41b3f36545f0

---

<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 2, 2018, 4:32am UTC](https://discuss.elastic.co/t/my-translate-config-isnt-working/118102/4 "2018-03-02T04:32:46Z")

</div>

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