Hi - anyone know what could be going wrong here - I assigned my logstash user sg_all_access, but in my logstash logs I am getting - no permissions for indices:data/write/bulk
Here is my sg_all_access config which is working fine for my kibana user:
1 sg_all_access:
2 cluster:
3 - CLUSTER_ALL
4 indices:
5 ‘*’:
6 ‘*’:
7 - ALL
Here is my logstash config:
1 output {
2
3 elasticsearch {
4 user => logstash
5 password => xxxxxxxxxxxx
6 ssl => true
7 ssl_certificate_verification => true
8 truststore => “/etc/elasticsearch/truststore.jks”
9 truststore_password => ‘xxxxxxxxxxx’
10 hosts => [“mydatanode-a.com:9200”, “mydatanode-c.com:9200”, “mydatanode-d.com:9200”, “mydatanode-e.com:9200”]
11 index => “qa-logs-%{+YYYY.MM.dd}”
And here is the error I am getting:
{:timestamp=>“2016-11-10T06:40:46.961000+0000”, :message=>“[403] {"error":{"root_cause":[{"type":"security_exception","reason":"no permissions for indices:data/write/bulk"}],"t ype":"security_exception","reason":"no permissions for indices:data/write/bulk"},"status":403}”, :class=>“Elasticsearch::Transport::Transport::Errors::Forbidden”, :backtrace=>[“/op t/logstash/vendor/bundle/jruby/1.9/gems/elasticsearch-transport-1.0.17/lib/elasticsearch/transport/transport/base.rb:201:in __raise_transport_error'", "/opt/logstash/vendor/bundle/jruby/1. 9/gems/elasticsearch-transport-1.0.17/lib/elasticsearch/transport/transport/base.rb:312:in
perform_request’”, “/opt/logstash/vendor/bundle/jruby/1.9/gems/elasticsearch-transport-1.0.17/lib /elasticsearch/transport/transport/http/manticore.rb:67:in perform_request'", "/opt/logstash/vendor/bundle/jruby/1.9/gems/elasticsearch-transport-1.0.17/lib/elasticsearch/transport/client. rb:128:in
perform_request’”, “/opt/logstash/vendor/bundle/jruby/1.9/gems/elasticsearch-api-1.0.17/lib/elasticsearch/api/actions/bulk.rb:88:in bulk'", "/opt/logstash/vendor/bundle/jruby/1. 9/gems/logstash-output-elasticsearch-2.7.0-java/lib/logstash/outputs/elasticsearch/http_client.rb:53:in
non_threadsafe_bulk’”, “/opt/logstash/vendor/bundle/jruby/1.9/gems/logstash-output-e lasticsearch-2.7.0-java/lib/logstash/outputs/elasticsearch/http_client.rb:38:in bulk'", "org/jruby/ext/thread/Mutex.java:149:in
synchronize’”, “/opt/logstash/vendor/bundle/jruby/1.9/gems/ logstash-output-elasticsearch-2.7.0-java/lib/logstash/outputs/elasticsearch/http_client.rb:38:in bulk'", "/opt/logstash/vendor/bundle/jruby/1.9/gems/logstash-output-elasticsearch-2.7.0-jav a/lib/logstash/outputs/elasticsearch/common.rb:172:in
safe_bulk’”, “/opt/logstash/vendor/bundle/jruby/1.9/gems/logstash-output-elasticsearch-2.7.0-java/lib/logstash/outputs/elasticsearch/c ommon.rb:101:in submit'", "/opt/logstash/vendor/bundle/jruby/1.9/gems/logstash-output-elasticsearch-2.7.0-java/lib/logstash/outputs/elasticsearch/common.rb:86:in
retrying_submit’”, “/opt/ logstash/vendor/bundle/jruby/1.9/gems/logstash-output-elasticsearch-2.7.0-java/lib/logstash/outputs/elasticsearch/common.rb:29:in multi_receive'", "org/jruby/RubyArray.java:1653:in
each_s lice’”, “/opt/logstash/vendor/bundle/jruby/1.9/gems/logstash-output-elasticsearch-2.7.0-java/lib/logstash/outputs/elasticsearch/common.rb:28:in multi_receive'", "/opt/logstash/vendor/bundl e/jruby/1.9/gems/logstash-core-2.3.3-java/lib/logstash/output_delegator.rb:130:in
worker_multi_receive’”, “/opt/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-2.3.3-java/lib/logstash/ output_delegator.rb:114:in multi_receive'", "/opt/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-2.3.3-java/lib/logstash/pipeline.rb:301:in
output_batch’”, “org/jruby/RubyHash.java:1 342:in each'", "/opt/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-2.3.3-java/lib/logstash/pipeline.rb:301:in
output_batch’”, “/opt/logstash/vendor/bundle/jruby/1.9/gems/logstash-co re-2.3.3-java/lib/logstash/pipeline.rb:232:in worker_loop'", "/opt/logstash/vendor/bundle/jruby/1.9/gems/logstash-core-2.3.3-java/lib/logstash/pipeline.rb:201:in
start_workers’”], :level= >:warn}
Any ideas? - Thank you!