<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<br class="">
<div><br class="">
<blockquote type="cite" class="">
<div class="">On 19/12/2020, at 2:40 PM, Russell Fulton <<a href="mailto:r.fulton@auckland.ac.nz" class="">r.fulton@auckland.ac.nz</a>> wrote:</div>
<div class="">
<div class=""><br class="">
I have been using the elasticsearch_http driver to push stuff into ES for well over a year. Now I am trying to use the Index Lifecycle Management (ILM) to manage these indexes and finding it very confusing. There seem to be holes in the ES docs and help on
 their forum is a bit erratic. <br class="">
<br class="">
The most confusing thing is the “rollover index alias” and I have yet to find a coherent explanation of exactly what it does and how to set it. Most of the documentation seems to assume you are using filebeat, logstash or datastreams.<br class="">
<br class="">
So far as I can see you syslog-ng can not write to datastreams as you need to use “create” rather than “index”.
<br class="">
<br class="">
If anyone has a working set up that they are happy to share it would be wonderful.<br class="">
<br class="">
Russell<br class="">
</div>
</div>
</blockquote>
<br class="">
</div>
<div>This is getting weirder !</div>
<div><br class="">
</div>
<div>ES is now failing to create my new index at all in spite of the destination definition being practically identical to one that works:</div>
<div><br class="">
</div>
<div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(45, 150, 30);" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">destination d_auth_elastic</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class=""> {</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(193, 101, 28);" class="">
<span style="font-variant-ligatures: no-common-ligatures; color: #000000" class=""> 
</span><span style="font-variant-ligatures: no-common-ligatures" class="">elasticsearch_http(</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(157, 32, 111);" class="">
<span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">    index(</span><span style="font-variant-ligatures: no-common-ligatures" class="">"auth_${YEAR}.${MONTH}.${DAY}"</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">)</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">   type(</span><span style="font-variant-ligatures: no-common-ligatures; color: #9d206f" class="">"_doc"</span><span style="font-variant-ligatures: no-common-ligatures" class="">)</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">   persist-name(</span><span style="font-variant-ligatures: no-common-ligatures; color: #9d206f" class="">"auth"</span><span style="font-variant-ligatures: no-common-ligatures" class="">)</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(157, 32, 111);" class="">
<span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">   template(</span><span style="font-variant-ligatures: no-common-ligatures" class="">"$(format-json --scope nv-pairs --exclude HOST_FROM                                    
                                                                                </span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(157, 32, 111);" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">                                            --exclude HOST                                                                                                                         </span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(157, 32, 111);" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">                                            --exclude srcip*                                                                                                                       </span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(157, 32, 111);" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">                                            --exclude SOURCE                                                                                                                       </span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(157, 32, 111);" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">                                            --exclude PROGRAM                                                                                                                      </span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(157, 32, 111);" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">                                            --exclude 0                                                                                                                            </span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(157, 32, 111);" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">                                            --exclude 1                                                                                                                            </span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(157, 32, 111);" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">                                            --exclude PID                                                                                                                          </span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(157, 32, 111);" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">                                            --exclude LEGACY_MSGHDR                                                                                                                </span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(157, 32, 111);" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">                         --key ISODATE)\n"</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">         </span>
<span style="font-variant-ligatures: no-common-ligatures; color: #c1651c" class="">)</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; min-height: 13px;" class="">
<span style="font-variant-ligatures: no-common-ligatures" class=""></span><br class="">
</div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(157, 32, 111);" class="">
<span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">    url(</span><span style="font-variant-ligatures: no-common-ligatures" class="">"<a href="http://secesprd01.its.auckland.ac.nz:9200/_bulk" class="">http://secesprd01.its.auckland.ac.nz:9200/_bulk</a>"</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">)</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">  </span><span style="font-variant-ligatures: no-common-ligatures; color: #c1651c" class="">);</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(193, 101, 28);" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">};</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; min-height: 13px;" class="">
<span style="font-variant-ligatures: no-common-ligatures" class=""></span><br class="">
</div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(45, 150, 30);" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">destination d_authm_elastic</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class=""> {</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(193, 101, 28);" class="">
<span style="font-variant-ligatures: no-common-ligatures; color: #000000" class=""> 
</span><span style="font-variant-ligatures: no-common-ligatures" class="">elasticsearch_http(</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(157, 32, 111);" class="">
<span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">    index(</span><span style="font-variant-ligatures: no-common-ligatures" class="">"auth-000001"</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">)</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">   type(</span><span style="font-variant-ligatures: no-common-ligatures; color: #9d206f" class="">""</span><span style="font-variant-ligatures: no-common-ligatures" class="">)</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(157, 32, 111);" class="">
<span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">   template(</span><span style="font-variant-ligatures: no-common-ligatures" class="">"$(format-json --scope nv-pairs --exclude HOST_FROM                                    
                                                                                </span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(157, 32, 111);" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">                                            --exclude HOST                                                                                                                         </span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(157, 32, 111);" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">                                            --exclude srcip*                                                                                                                       </span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(157, 32, 111);" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">                                            --exclude SOURCE                                                                                                                       </span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(157, 32, 111);" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">                                            --exclude PROGRAM                                                                                                                      </span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(157, 32, 111);" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">                                            --exclude 0                                                                                                                            </span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(157, 32, 111);" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">                                            --exclude 1                                                                                                                            </span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(157, 32, 111);" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">                                            --exclude PID                                                                                                                          </span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(157, 32, 111);" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">                                            --exclude LEGACY_MSGHDR )\n"</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">         </span>
<span style="font-variant-ligatures: no-common-ligatures; color: #c1651c" class="">)</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; min-height: 13px;" class="">
<span style="font-variant-ligatures: no-common-ligatures" class=""></span><br class="">
</div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(157, 32, 111);" class="">
<span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">    url(</span><span style="font-variant-ligatures: no-common-ligatures" class="">"<a href="http://secesprd01.its.auckland.ac.nz:9200/_bulk" class="">http://secesprd01.its.auckland.ac.nz:9200/_bulk</a>"</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">)</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">  </span><span style="font-variant-ligatures: no-common-ligatures; color: #c1651c" class="">);</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(193, 101, 28);" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">};</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; min-height: 13px;" class="">
<span style="font-variant-ligatures: no-common-ligatures" class=""></span><br class="">
</div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; min-height: 13px;" class="">
<span style="font-variant-ligatures: no-common-ligatures" class=""></span><br class="">
</div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; min-height: 13px;" class="">
<span style="font-variant-ligatures: no-common-ligatures" class=""></span><br class="">
</div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(45, 150, 30);" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">log</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class=""> {</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">    </span><span style="font-variant-ligatures: no-common-ligatures; color: #c1651c" class="">source(</span><span style="font-variant-ligatures: no-common-ligatures" class=""> s_loghost );</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">    </span><span style="font-variant-ligatures: no-common-ligatures; color: #c1651c" class="">parser(</span><span style="font-variant-ligatures: no-common-ligatures" class=""> p_patterns );</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">    </span><span style="font-variant-ligatures: no-common-ligatures; color: #c1651c" class="">filter(</span><span style="font-variant-ligatures: no-common-ligatures" class=""> f_classified );</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">    </span><span style="font-variant-ligatures: no-common-ligatures; color: #c1651c" class="">filter(</span><span style="font-variant-ligatures: no-common-ligatures" class=""> f_ping999 );</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">    </span><span style="font-variant-ligatures: no-common-ligatures; color: #c1651c" class="">filter(</span><span style="font-variant-ligatures: no-common-ligatures" class=""> f_forti_stats
 );</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">    </span><span style="font-variant-ligatures: no-common-ligatures; color: #c1651c" class="">rewrite(</span><span style="font-variant-ligatures: no-common-ligatures" class=""> r_user1 );</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">    </span><span style="font-variant-ligatures: no-common-ligatures; color: #c1651c" class="">rewrite(</span><span style="font-variant-ligatures: no-common-ligatures" class=""> r_user2 );</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">    </span><span style="font-variant-ligatures: no-common-ligatures; color: #c1651c" class="">rewrite(</span><span style="font-variant-ligatures: no-common-ligatures" class=""> r_srcip );</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">    </span><span style="font-variant-ligatures: no-common-ligatures; color: #c1651c" class="">parser(</span><span style="font-variant-ligatures: no-common-ligatures" class=""> p_srcip );</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">    </span><span style="font-variant-ligatures: no-common-ligatures; color: #c1651c" class="">rewrite(</span><span style="font-variant-ligatures: no-common-ligatures" class=""> r_srcip_country
 );</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">    </span><span style="font-variant-ligatures: no-common-ligatures; color: #c1651c" class="">rewrite(</span><span style="font-variant-ligatures: no-common-ligatures" class=""> r_srcip_city);</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">    </span><span style="font-variant-ligatures: no-common-ligatures; color: #c1651c" class="">rewrite(</span><span style="font-variant-ligatures: no-common-ligatures" class=""> r_src_loc);</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">    </span><span style="font-variant-ligatures: no-common-ligatures; color: #c1651c" class="">rewrite(</span><span style="font-variant-ligatures: no-common-ligatures" class=""> r_ISODATE );</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">    </span><span style="font-variant-ligatures: no-common-ligatures; color: #c1651c" class="">destination(</span><span style="font-variant-ligatures: no-common-ligatures" class=""> d_auth_elastic
 );</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">    </span><span style="font-variant-ligatures: no-common-ligatures; color: #c1651c" class="">destination(</span><span style="font-variant-ligatures: no-common-ligatures" class=""> d_authm_elastic);</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">    </span><span style="font-variant-ligatures: no-common-ligatures; color: #c1651c" class="">flags(</span><span style="font-variant-ligatures: no-common-ligatures" class=""> flow-control);</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(193, 101, 28);" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">};</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; min-height: 13px;" class="">
<span style="font-variant-ligatures: no-common-ligatures" class=""></span><br class="">
</div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; min-height: 13px;" class="">
<span style="font-family: Menlo;" class="">d_auth_elastic </span>works fine but <span style="font-family: Menlo;" class="">d_authm_elastic
</span>never gets created.  No errors on the ES end.</div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; min-height: 13px;" class="">
<br class="">
</div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; min-height: 13px;" class="">
Anyone have any clues as to what is going on?</div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; min-height: 13px;" class="">
<br class="">
</div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; min-height: 13px;" class="">
I am at the point of starting tcpdump and looking at what is going over the network.</div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; min-height: 13px;" class="">
<br class="">
</div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; min-height: 13px;" class="">
 </div>
</div>
<br class="">
</body>
</html>