Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

basic auth on rss input #7

Open
featheredtoast opened this issue Jun 10, 2015 · 3 comments
Open

basic auth on rss input #7

featheredtoast opened this issue Jun 10, 2015 · 3 comments

Comments

@featheredtoast
Copy link

I have an rss feed that requires basic http auth to read from. However, I noticed that an auth-as-url stream isn't possible in faraday's implementation (see lostisland/faraday#426 )

Would it be possible to add basic auth for feeds, either as a parsed URL stream here, or by adding user/pass attributes in the plugin itself?

@wwfalcon
Copy link

try https://USER:PASSWORD@host:ip

@featheredtoast
Copy link
Author

featheredtoast commented Feb 11, 2018

The original ticket is about logstash input rss' dependency, faraday, not supporting that format.

see how the plugin uses it here:
https://github.com/logstash-plugins/logstash-input-rss/blob/master/lib/logstash/inputs/rss.rb#L42

and see that the user:password@host format isn't supported via faraday here:
lostisland/faraday#426
and here:
lostisland/faraday#343

It still does not seem to be supported.

@wwfalcon
Copy link

you can add user/pass attributes in the url as bellow:

input {
  rss {
    url => "https://USER:PASS@host:ip"
    interval => 300
  }
}

output {
    elasticsearch {
        hosts => "http://10.4.44.9:9294"
        index => "mbrain-rss-idx"
        document_type => "rss-doc"
    }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants