# Pull data from Twitter(particular hashtag)

**URL:** <https://discuss.elastic.co/t/pull-data-from-twitter-particular-hashtag/27271>\
**Category:** Logstash\
**Created:** [August 12, 2015, 3:30pm UTC](https://discuss.elastic.co/t/pull-data-from-twitter-particular-hashtag/27271 "2015-08-12T15:30:31Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dan](https://avatars.discourse-cdn.com/v4/letter/d/eada6e/32.png) [@Dan](https://discuss.elastic.co/u/Dan)\
**Post date:** [August 12, 2015, 3:30pm UTC](https://discuss.elastic.co/t/pull-data-from-twitter-particular-hashtag/27271/1 "2015-08-12T15:30:31Z")

</div>

Hi All,

I am using logstash to pull data from twitter to elasticsearch.  
Below is my config file.

input {

```
twitter {
    
	 add_field =>
	consumer_key => "xxxxxxxxxxxxxxxxx"
	consumer_secret => "xxxxxxxxxxxxxxxxxx"
    oauth_token => "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
    oauth_token_secret => "xxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
    full_tweet => true		
    keywords => ["ipl"]
	
}

```

}

output {  
elasticsearch{  
protocol =\> "http"  
document\_id =\> "%{id}"  
host =\> "localhost"  
index =\> "twitter"  
index\_type =\> "tweet"  
}  
}

> > > In above config file i given ipl as keyword.So it's pulling data from twitter wherever ipl keyword is present(I am not Sure).
> > > 
> > > > But i want data from particular hashtag.(EX:@IPL)

1.What columns i need to add in config file to pull data from mentioned hashtag??  
2.Is logstash have that capability to pull data from particular hashtag??

Please help me.

Regards,  
Dinesh.

---

<div class="post-metadata">

**Author:** ![bhellsun](https://avatars.discourse-cdn.com/v4/letter/b/49beb7/32.png) [@bhellsun](https://discuss.elastic.co/u/bhellsun)\
**Post date:** [February 26, 2016, 10:30am UTC](https://discuss.elastic.co/t/pull-data-from-twitter-particular-hashtag/27271/2 "2016-02-26T10:30:41Z")

</div>

Hello @Dan,

DId you get an answer for this query. Even I am looking for the same?

---

<div class="post-metadata">

**Author:** ![Dan](https://avatars.discourse-cdn.com/v4/letter/d/eada6e/32.png) [@Dan](https://discuss.elastic.co/u/Dan)\
**Post date:** [March 30, 2016, 12:07pm UTC](https://discuss.elastic.co/t/pull-data-from-twitter-particular-hashtag/27271/3 "2016-03-30T12:07:51Z")

</div>

No,I didn't get any Answer...

---

<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:** [July 6, 2017, 5:04am UTC](https://discuss.elastic.co/t/pull-data-from-twitter-particular-hashtag/27271/4 "2017-07-06T05:04:44Z")

</div>


