All Apps and Add-ons

Twitter credentials error !!

sunrise
Contributor

Hi splunkers,

I got the errors in "Twitter for Splunk".
http://splunk-base.splunk.com/apps/56296/twitter-for-splunk

And logs show.

07-06-2013 22:15:35.035 +0900 ERROR FrameworkUtils - Incorrect path to script: /.bintwitter_stream.py.  Script must be located inside $SPLUNK_HOME/bin/scripts.
07-06-2013 22:15:35.035 +0900 ERROR ExecProcessor - Ignoring: "/.bintwitter_stream.py"
07-06-2013 22:15:37.626 +0900 ERROR ExecProcessor - message from "python /opt/splunk/etc/apps/twitter2/bin/twitter_stream.py" Could not get Twitter credentials from splunk. Error: No credentials supplied, please complete the Twitter app setup

I also got the same question in community site, but it seems to be unsolved.
http://splunk-base.splunk.com/apps/56296/twitter-for-splunk

Please teach me solutions.
This is a great app to demonstrate splunk..

Thanks.

P.S.
The error message which we should pay attention is below.

07-08-2013 12:16:41.820 +0900 ERROR ExecProcessor - message from "python /opt/splunk/etc/apps/twitter2/bin/twitter_stream.py" Could not get Twitter credentials from splunk. Error: No credentials supplied, please complete the Twitter app setup
07-08-2013 12:17:41.819 +0900 ERROR ExecProcessor - message from "python /opt/splunk/etc/apps/twitter2/bin/twitter_stream.py" Could not get Twitter credentials from splunk. Error: No credentials supplied, please complete the Twitter app setup
07-08-2013 12:18:41.818 +0900 ERROR ExecProcessor - message from "python /opt/splunk/etc/apps/twitter2/bin/twitter_stream.py" Could not get Twitter credentials from splunk. Error: No credentials supplied, please complete the Twitter app setup

And then my apps configuration is default.
alt text

If I add my twitter account to "Add Twitter Account Info", I got the error message in window.

Encountered the following error while trying to update: In handler 'localapps': Could not validate password for id="credential::MyTwitterAccount:"

Should I set my twitter account ?

1 Solution

sunrise
Contributor

I give up using Twitter for Splunk Apps to collect twitter data.
That is because Twitter API update (ver1.0 → ver1.1) cause several changes.
For example, oauth1 is needed and URI is changed.

But I collect data with REST API Modular Input.

REST API Modular Input - Splunk Community http://splunk-base.splunk.com/apps/90843/rest-api-modular-input

Before setting, you need to get Access Key and so on in Developer Site ( https://dev.twitter.com/ ).
And you get twitter sample data in json format to get target URI https://stream.twitter.com/1.1/statuses/sample.json .

View solution in original post

amiracle
Splunk Employee
Splunk Employee

Create your own Modular REST API input and you can leverage the samples from twitter: https://dev.twitter.com/docs/api/1.1

I also added some extra details on setting up the twitter app with modular inputs on this post on splunkbase: http://splunk-base.splunk.com/answers/58689/issue-with-twitter-app-installation?page=1&focusedAnswer...

I hope that helps.

sunrise
Contributor

Thank you for your advice, amiracle.

0 Karma

sunrise
Contributor

I give up using Twitter for Splunk Apps to collect twitter data.
That is because Twitter API update (ver1.0 → ver1.1) cause several changes.
For example, oauth1 is needed and URI is changed.

But I collect data with REST API Modular Input.

REST API Modular Input - Splunk Community http://splunk-base.splunk.com/apps/90843/rest-api-modular-input

Before setting, you need to get Access Key and so on in Developer Site ( https://dev.twitter.com/ ).
And you get twitter sample data in json format to get target URI https://stream.twitter.com/1.1/statuses/sample.json .

sunrise
Contributor

I think this is caused by updating twitter API from ver1.0 to ver1.1 added authentication logic...

0 Karma

devcs
Engager

I do, I tried using it for the first time yesterday. I got the same "Could not validate password for id="credential:..." error.

0 Karma

sunrise
Contributor

Does nobody happen this problem ?

0 Karma

piebob
Splunk Employee
Splunk Employee

i added the twitter for splunk app tag; this should notify the author of the app of your question.

Get Updates on the Splunk Community!

Modernize your Splunk Apps – Introducing Python 3.13 in Splunk

We are excited to announce that the upcoming releases of Splunk Enterprise 10.2.x and Splunk Cloud Platform ...

New Release | Splunk Cloud Platform 10.1.2507

Hello Splunk Community!We are thrilled to announce the General Availability of Splunk Cloud Platform 10.1.2507 ...

🌟 From Audit Chaos to Clarity: Welcoming Audit Trail v2

🗣 You Spoke, We Listened  Audit Trail v2 wasn’t written in isolation—it was shaped by your voices.  In ...