# Send Parameter With Reset Plugin

**URL:** <https://discuss.elastic.co/t/send-parameter-with-reset-plugin/221803>\
**Category:** Logstash\
**Created:** [March 3, 2020, 3:57am UTC](https://discuss.elastic.co/t/send-parameter-with-reset-plugin/221803 "2020-03-03T03:57:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![shakesperoo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shakesperoo/32/20832_2.png) [@shakesperoo](https://discuss.elastic.co/u/shakesperoo)\
**Post date:** [March 3, 2020, 3:57am UTC](https://discuss.elastic.co/t/send-parameter-with-reset-plugin/221803/1 "2020-03-03T03:57:55Z")

</div>

I am using reset with twitter API and i need to pass conditonal paramter  
like  
tweet\_id" =\>"tweet" =\>(truncated) ? :"%{extend\_full\_text}%" :"%{text}"

below my code .

rest  
{  
request =\> {  
cacert =\> 'E:/Momp\_Social\_Media\_BigData/elasticsearch-7.5.1/CertificateConfig/ca/ca.crt'  
ssl =\> true  
ssl\_certificate\_verification =\> false  
url =\> "[http://10.153.1.12:2020/sentiement](http://10.153.1.12:2020/sentiement)"  
method =\> "post"  
params =\> {  
"tweet" =\> "%{text}"  
"tweet\_id" =\> "%{id\_str}"  
}  
headers =\> { "Content-Type" =\> "application/json" }  
}  
target =\> 'rest'  
}

---

<div class="post-metadata">

**Author:** ![shakesperoo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shakesperoo/32/20832_2.png) [@shakesperoo](https://discuss.elastic.co/u/shakesperoo)\
**Post date:** [March 3, 2020, 4:01am UTC](https://discuss.elastic.co/t/send-parameter-with-reset-plugin/221803/2 "2020-03-03T04:01:25Z")

</div>

> [@shakesperoo](#):
>
> "tweet" =\>(truncated) ? :"%{extend\_full\_text}%" :"%{text}"

i need to send paramter conditionally

if tweet truncated then send full text else send the text .

"tweet" =\> (truncated) ? :"%{extend\_full\_text}%" :"%{text}"

---

<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 31, 2020, 4:01am UTC](https://discuss.elastic.co/t/send-parameter-with-reset-plugin/221803/3 "2020-03-31T04:01:38Z")

</div>

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