# Failed to execute action

**URL:** <https://discuss.elastic.co/t/failed-to-execute-action/142960>\
**Category:** Logstash\
**Created:** [August 3, 2018, 5:42pm UTC](https://discuss.elastic.co/t/failed-to-execute-action/142960 "2018-08-03T17:42:20Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Honda\_fred\_elk](https://avatars.discourse-cdn.com/v4/letter/h/919ad9/32.png) [@Honda\_fred\_elk](https://discuss.elastic.co/u/Honda_fred_elk)\
**Post date:** [August 3, 2018, 5:42pm UTC](https://discuss.elastic.co/t/failed-to-execute-action/142960/1 "2018-08-03T17:42:20Z")

</div>

Hello,

Recently I upgraded ELK from 6.2.2 to 6.3.2.  
I have translate filter plugin for my logs processing filter which was working great in 6.2.2 but not in 6.3.2. I have 4 different conf files out of 4, 2 are working and the conf which has translate filter is not working  
I updated the syntax as per the new version of translate plugin ver 3.1.0..  
but logstash throws following Error message.

**[ERROR][logstash.agent] Failed to execute action {:action=\>LogStash::PipelineAction::Create/pipeline\_id:syserr, :exception=\>"LogStash::ConfigurationError", :message=\>"Expected one of #, {, } at line 30, column 30 (byte 1175) after filter{\r\n\tgrok {\r\n\t\tpatterns\_dir =\> ["./appl/grokpattern"]\r\n\t\tmatch =\> ["message", "\[%{TimeDate:loggingTime}\] %{BASE16NUM:ThreadId} %{WORD:ComponentName}%{SPACE}%{WORD:loglevel}%{SPACE}%{GREEDYDATA:logMessage}"]\r\n\t\toverwrite =\> ["message"]\r\n\t}\t\r\n\tdate {\r\n\t\tmatch =\> ["loggingTime", "M/dd/yy HH:mm:ss:SSS z", "MM/d/yy HH:mm:ss:SSS z", "M/d/yy HH:mm:ss:SSS z", "MM/dd/yy H:mm:ss:SSS z", "M/d/yy H:mm:ss:SSS z", "MM/d/yy H:mm:ss:SSS z", "M/dd/yy H:mm:ss:SSS z"]\r\n\t\ttarget =\> "@timestamp"\r\n \t}\r\n\ttranslate {\r\n\t\tfield =\> "loglevel"\r\n\t\toverride =\> true\r\n\t\tdestination =\> "loglevel"\r\n\t\tdictionary =\> {"F"=\>"FATAL"", :backtrace=\>["/usr/share/logstash/logstash-core/lib/logstash/compiler.rb:42:in `compile_imperative'", "/usr/share/logstash/logstash-core/lib/logstash/compiler.rb:50:in`compile\_graph'", "/usr/share/logstash/logstash-core/lib/logstash/compiler.rb:12:in `block in compile_sources'", "org/jruby/RubyArray.java:2486:in`map'", "/usr/share/logstash/logstash-core/lib/logstash/compiler.rb:11:in `compile_sources'", "/usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:49:in`initialize'", "/usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:167:in `initialize'", "/usr/share/logstash/logstash-core/lib/logstash/pipeline_action/create.rb:40:in`execute'", "/usr/share/logstash/logstash-core/lib/logstash/agent.rb:305:in `block in converge\_state'"]}**

for your reference I have the conf file content here.. To me every thing syntax wise looks good. but not sure why it is not working..

```
input {
	file {
		path => ["PATH to files"]
		start_position => "beginning"
		sincedb_path => "/path/sincedbfile_SysErr.txt"
		codec => multiline {
			pattern => "^\["
			negate => true
			what => "previous"
		}
		exclude => ["*.gz","native_std*.log"]
		type => "WAS_SysErr_logs"
		tags => "WAS_SysErr_logs"		
        }
}
filter{
	grok {
		patterns_dir => ["./Path/grokpattern"]
		match => ["message", "\[%{TimeDate:loggingTime}\] %{BASE16NUM:ThreadId} %{WORD:ComponentName}%{SPACE}%{WORD:loglevel}%{SPACE}%{GREEDYDATA:logMessage}"]
		overwrite => ["message"]
	}	
	date {
		match => ["loggingTime", "M/dd/yy HH:mm:ss:SSS z", "MM/d/yy HH:mm:ss:SSS z", "M/d/yy HH:mm:ss:SSS z", "MM/dd/yy H:mm:ss:SSS z", "M/d/yy H:mm:ss:SSS z", "MM/d/yy H:mm:ss:SSS z", "M/dd/yy H:mm:ss:SSS z"]
		target => "@timestamp"
       	}
	translate {
		field => "loglevel"
		override => true
		destination => "loglevel"
		dictionary => {"F"=>"FATAL","W"=>"WARNING","I"=>"INFO","D"=>"DETAIL","E"=>"ERROR","A"=>"AUDIT","C"=>"CONFIG"}
	}
	mutate{
		remove_field => ["TimeDate","TIME","DATE", "TIMEZONE"]
	}
	fingerprint{
		id => "WASSysErrLogs"
		source => ["@timestamp","message"]
		target => "fingerprint"
		key => "35353535"
		method => "SHA1"
		concatenate_sources => true
	}
}
output {
	elasticsearch {
		hosts => ["Server1:9200","Server2:9200"]
		document_id => "%{fingerprint}"
		index => "was-galc-logs-%{+YYYY.MM.dd}"
	}
}

```

Could anyone take a look and whats wrong in the configuration?  
Thanks in Advance.

Fredrick

---

<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:** [August 3, 2018, 5:50pm UTC](https://discuss.elastic.co/t/failed-to-execute-action/142960/2 "2018-08-03T17:50:25Z")

</div>

> [@Honda\_fred\_elk](#):
>
> dictionary =\> {"F"=\>"FATAL","W"=\>"WARNING","I"=\>"INFO","D"=\>"DETAIL","E"=\>"ERROR","A"=\>"AUDIT","C"=\>"CONFIG"}

Change those commas to spaces

---

<div class="post-metadata">

**Author:** ![Honda\_fred\_elk](https://avatars.discourse-cdn.com/v4/letter/h/919ad9/32.png) [@Honda\_fred\_elk](https://discuss.elastic.co/u/Honda_fred_elk)\
**Post date:** [August 3, 2018, 6:22pm UTC](https://discuss.elastic.co/t/failed-to-execute-action/142960/3 "2018-08-03T18:22:28Z")

</div>

Thanks Badger that worked..

But the documentation says.. each pair should be separated by comma.. ???!!!  
[https://www.elastic.co/guide/en/logstash/master/plugins-filters-translate.html#plugins-filters-translate-dictionary](https://www.elastic.co/guide/en/logstash/master/plugins-filters-translate.html#plugins-filters-translate-dictionary)

---

<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:** [August 3, 2018, 6:32pm UTC](https://discuss.elastic.co/t/failed-to-execute-action/142960/4 "2018-08-03T18:32:19Z")

</div>

The documentation is wrong.

---

<div class="post-metadata">

**Author:** ![Honda\_fred\_elk](https://avatars.discourse-cdn.com/v4/letter/h/919ad9/32.png) [@Honda\_fred\_elk](https://discuss.elastic.co/u/Honda_fred_elk)\
**Post date:** [August 3, 2018, 6:36pm UTC](https://discuss.elastic.co/t/failed-to-execute-action/142960/5 "2018-08-03T18:36:30Z")

</div>

Thanks.. It will be good, if the documentation is corrected..

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [August 3, 2018, 7:17pm UTC](https://discuss.elastic.co/t/failed-to-execute-action/142960/6 "2018-08-03T19:17:40Z")

</div>

The documentation was fixed in [PR #60](https://github.com/logstash-plugins/logstash-filter-translate/pull/60) but the docs on the site are trailing behind because the plugin hasn't been released since the correction.

---

<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:** [August 31, 2018, 7:17pm UTC](https://discuss.elastic.co/t/failed-to-execute-action/142960/7 "2018-08-31T19:17:40Z")

</div>

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