You would want to define the index in the output section of logstash.config, 
i.e.:

output {
    elasticsearch {
        hosts => [“host"]
        index => “logstash-logs-%{+YYYY.MM.dd}"
    }   

}


RE:  
https://www.elastic.co/guide/en/logstash/current/plugins-outputs-elasticsearch.html#plugins-outputs-elasticsearch-index
 
<https://www.elastic.co/guide/en/logstash/current/plugins-outputs-elasticsearch.html#plugins-outputs-elasticsearch-index>


HTH,

Josh Miller
ITSA Consulting, LLC
skype:  itsecureadmin
https://itsecureadmin.com/

> On Mar 17, 2017, at 7:24 AM, iob <[email protected]> wrote:
> 
> i have set up a logstash-plugin to forward logs to elasticsearch. for now it 
> works and i can see logs on logstash-jenkins index that
> has been set in the plugin. What I want though is to sent to 
> logstash-YY.mm.dd indices. i tried to set the "key" to logstash-* but doesnt 
> seem to work. any idea?
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected] 
> <mailto:[email protected]>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/jenkinsci-users/354daa13-1875-46e0-8d76-b1dc9b5b0f85%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/jenkinsci-users/354daa13-1875-46e0-8d76-b1dc9b5b0f85%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/5A7566F7-B259-46C2-B9B4-AD142BE03427%40itsecureadmin.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to