I don't quite understand why it doesn't work. Is it because the input would not return the token correctly or because the http_poller does not support tokens?
If I change the first input to get the token to an 'exec' input that curls the url and stores this token in a field and uses it in the poller header, would it work?
or should i keep the token at the input with hhtp_poller and then with http filter connect to the other api to keep the data?
I'm not very good with ruby and I don't quite understand the example you gave me
The schedule option on the http_poller option is required.
You may be able to use the http_poller to get the token.
The http filter will only get called when an event goes through the pipeline. That will happen each time the http_poller is triggered. If you do not want to call the http_poller input once for every call to the http filter then you must store the token, using code similar to what I shared a link to.
i think that the token will be a random one everytime i conect to the api.
I think I'm starting to understand...
I understand that if I want to obtain the data I must perform the http_poller to obtain the token, once the token is obtained it is stored in the indicated field ( http_poller_token_metadata) , if there is event the http filter is activated and It store the data in the indicated field ( filed-with-data) that will later be indexed in elastic .
Is that so? the data is actually fetched by the http filter? I did not understand well that the filter function is like an input
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.