# Exec output plugin

**URL:** <https://discuss.elastic.co/t/exec-output-plugin/348869>\
**Category:** Logstash\
**Created:** [December 8, 2023, 8:57am UTC](https://discuss.elastic.co/t/exec-output-plugin/348869 "2023-12-08T08:57:31Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Dor-Alter](https://avatars.discourse-cdn.com/v4/letter/d/7ea924/32.png) [@Dor-Alter](https://discuss.elastic.co/u/Dor-Alter)\
**Post date:** [December 8, 2023, 1:43pm UTC](https://discuss.elastic.co/t/exec-output-plugin/348869/3 "2023-12-08T13:43:32Z")

</div>

> [@Ruby script with dynamic variables in logstash](https://discuss.elastic.co/t/ruby-script-with-dynamic-variables-in-logstash/348870):
>
> Is it possible to have a dynamic variables in ruby that changes based on the input values I am getting from the inputfile? For example I have 5 input values which the attribute linked, if the value of link is 'connected' then I will need to increase the variable otherwise nothing. And for each value I will need to assign in a new attribute the current value of the variable. if the input is: username = test1, linked = disable, ... username = test2, linked = connected, ... username = test3, li…

This provides what I want to do with example.  
I thought I can have the whole process with logstash without need to have some local exec running. As the data I am using will be modify and I want it to be up to date in elasticsearch

---

_[View the full topic](https://discuss.elastic.co/t/exec-output-plugin/348869)._
