# Logstash-Twitter plugin - AND logical operator between keywords

**URL:** <https://discuss.elastic.co/t/logstash-twitter-plugin-and-logical-operator-between-keywords/299211>\
**Category:** Logstash\
**Created:** [March 9, 2022, 12:17pm UTC](https://discuss.elastic.co/t/logstash-twitter-plugin-and-logical-operator-between-keywords/299211 "2022-03-09T12:17:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dihiaselma](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dihiaselma/32/102810_2.png) [@dihiaselma](https://discuss.elastic.co/u/dihiaselma)\
**Post date:** [March 9, 2022, 12:17pm UTC](https://discuss.elastic.co/t/logstash-twitter-plugin-and-logical-operator-between-keywords/299211/1 "2022-03-09T12:17:05Z")

</div>

I'm using Twitter logstash plugin to extract data from twitter. I need to specify an AND operator between my keywords.

I tried this syntax ["apple samsung"] i.e. if I find a tweet containing these two words I bring it. if just one of them =\> no don't bring it.

this syntax is not working correctly, it brings tweets containing one of these two words , or those containing the two.

please any help

---

<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:** [April 6, 2022, 12:17pm UTC](https://discuss.elastic.co/t/logstash-twitter-plugin-and-logical-operator-between-keywords/299211/2 "2022-04-06T12:17:33Z")

</div>

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