Hello Community,
So a few days ago i had to investigate regarding Opensearch because its open source.
(still using Elasticsearch)
Now i need help regarding how to import or load logfile/logstash and important part about the security,
The Documentation on the website is not that good maybe u guys can help me out.
@amagonawin Could you describe your logs ingest pipeline?
You can use Logstash with the OpenSearch output plugin or Data Prepper to ingest data to OpenSearch.
@amagonawin Did you use Logstash OSS with the OpenSearch output plugin.
The output part of your pipeline.yml is missing few things.
Check my example below.
@amagonawin I understood that you didn’t get any output after typing “hello” in the input.
In that case this is expected. The command line is only for stdin and stdout and it overwrites the pipeline.yml config file. There will be no logs sent to OpenSearch.
To send the logs to OpenSearch you need to use opensearch output as I’ve shared before.
Also you need to run Logstash using one of the below commands.
[WARN ][logstash.outputs.opensearch][main] Attempted to resurrect connection to dead OpenSearch instance, but got an error {:url=>"https://admin:xxxxxx@localhost:9200/", :exception=>LogStash::Outputs::OpenSearch::HttpClient::Pool::BadResponseCodeError, :message=>"Got response code '401' contacting OpenSearch at URL 'https://localhost:9200/'"}
Ok i see, when i created all that i used a " ! " in my password, somehow hes having issues with that, can i somehow change that?
@pablo
Hey, so its running and all, but now i have another question,
in my dashboard, it is shown, but i dont see the “message” that i tipped in?
just to be clear, if i want to load the logfiles into my dashboard i use:
→ ./bin/logstash -f /path/to/your/conf.file → do i type the message inside the comand line?
or
→ bin/logstash -e "input { stdin { } } output { stdout { } } or after i used this command?