Logstash is creating a daily index
"/etc/elasticsearch/data/test-elasticsearch/nodes/0/indices/logstash-2014.02.04"
and I'm viewing all of the logs through Kibana. We want to set up some user
based access control using the kibana-authentication-proxy setup due to it
supporting
Per-user kibana index supported. now you can use index
kibana-int-userA for user A and kibana-int-userB for user B
I'd like to make it where all logs coming in from logstash with a location
of "/var/log/UNIX/*.log" get sent to a new index of unix-2014.02.04 instead
of the logstash one. That way I can use the Kibana auth proxy to give my
UNIX users access only to their logs. I've read a little about creating the
mappings but wasn't sure how to tie it all together. I saw you could do
various things with API calls but was curious if I could set all of this up
in the elasticsearch.yml file from the start.
Thanks for that information. When I'm looking in Kibana now, it's showing
the correct type but it still shows the index as the original
logstash-2014-02-18. Not sure why it isn't showing the unix-date index. If
I look at Elasticsearch, I can see that it did create the new index I told
it to though.
On Tuesday, February 18, 2014 12:53:22 PM UTC-5, Binh Ly wrote:
You should be able to use the input type to direct log events to specific
indexes. For example:
Yup, you will need to go into your Kibana dashboard - top right corner -
Configure Dashboard | Index and change the settings there to point to your
new index(es) instead of the default logstash-* indexes.
Yup, you will need to go into your Kibana dashboard - top right corner -
Configure Dashboard | Index and change the settings there to point to your
new index(es) instead of the default logstash-* indexes.
Thanks! What was throwing me off is that I'm still having the UNIX logs
also write to logstash-date as well so I was seeing that information in my
main dashboard. I wasn't thinking about it writing 2 different times.
Thanks again.
On Tuesday, February 18, 2014 4:52:38 PM UTC-5, Binh Ly wrote:
Yup, you will need to go into your Kibana dashboard - top right corner -
Configure Dashboard | Index and change the settings there to point to your
new index(es) instead of the default logstash-* indexes.
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.