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!

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...