# LogStash::ConvergeResult::FailedAction while tryting to use pipeline output

**URL:** <https://discuss.elastic.co/t/logstash-failedaction-while-tryting-to-use-pipeline-output/273564>\
**Category:** Logstash\
**Created:** [May 20, 2021, 4:17pm UTC](https://discuss.elastic.co/t/logstash-failedaction-while-tryting-to-use-pipeline-output/273564 "2021-05-20T16:17:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kosodrom](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kosodrom/32/99278_2.png) [@Kosodrom](https://discuss.elastic.co/u/Kosodrom)\
**Post date:** [May 20, 2021, 4:17pm UTC](https://discuss.elastic.co/t/logstash-failedaction-while-tryting-to-use-pipeline-output/273564/1 "2021-05-20T16:17:51Z")

</div>

Hi folks,

this is my `test.conf`:

```
input {
  beats {
    port => 6150
  }
}
   
output {

  if [agent][type] == "metricbeat" {
    elasticsearch {
	  ...
    } 
	} else if [fields][log_type] == "audit" {
	elasticsearch {
	  ...
    } 
    } else if [kubernetes][namespace] == "default" {
    pipeline { send_to => [virtual-Address]}  
  
    } else if [kubernetes][namespace] =~ /^kube-*/ {
    elasticsearch {
	  ...
    }
    } else {
    elasticsearch {
	  ...
    }
	}
}

```

When starting logstash I have following error:

`[2021-05-20T18:03:19,011][ERROR][logstash.agent] Failed to execute action {:id=>:test, :action_type=>LogStash::ConvergeResult::FailedAction, :message=>"Expected one of [A-Za-z0-9_-], [\\t\\r\\n], \"#\", \"{\" at line 46, column 54 (byte 2044) after output {...}`

When I remove exactly this part:

```
else if [kubernetes][namespace] == "default" {
    pipeline { send_to => [virtual-Address]}  

```

the pipeline runs without any issues.

---

<div class="post-metadata">

**Author:** ![Kosodrom](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kosodrom/32/99278_2.png) [@Kosodrom](https://discuss.elastic.co/u/Kosodrom)\
**Post date:** [May 20, 2021, 4:30pm UTC](https://discuss.elastic.co/t/logstash-failedaction-while-tryting-to-use-pipeline-output/273564/2 "2021-05-20T16:30:00Z")

</div>

Ok apparently one is not allowed to use "-" in the virtualAddress name. Are there any other limitations to the name of the virtual address?

Thanks

---

<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:** [June 17, 2021, 4:30pm UTC](https://discuss.elastic.co/t/logstash-failedaction-while-tryting-to-use-pipeline-output/273564/3 "2021-06-17T16:30:42Z")

</div>

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