Coder Social home page Coder Social logo

Support weekly indices about curator HOT 12 CLOSED

elastic avatar elastic commented on June 9, 2024
Support weekly indices

from curator.

Comments (12)

divanikus avatar divanikus commented on June 9, 2024

It would be nice to have custom date format. I'm using an app creating indexes with dd-mm-YYYY format, which makes curator completely useless in my case.

from curator.

jordansissel avatar jordansissel commented on June 9, 2024

We could reuse the same syntax from either logstash or from kibana:

  • logstash: some text here %{+TIME FORMAT HERE} ...
  • kibana: [some text here ]TIME FORMAT HERE

from curator.

jordansissel avatar jordansissel commented on June 9, 2024

@divanikus You could make curator useful to you by patching it to support your use case, btw. :)

from curator.

divanikus avatar divanikus commented on June 9, 2024

@jordansissel Yeah, I know, and thats rather simple. But I prefer to have support of such things in "upstream" :)

from curator.

untergeek avatar untergeek commented on June 9, 2024

We do accept pull requests...

from curator.

divanikus avatar divanikus commented on June 9, 2024

It's simple to hack it for my case, but not that simple to make more generic option...

from curator.

untergeek avatar untergeek commented on June 9, 2024

@honzakral and I will be getting together at our company meetup next week to discuss the future of Curator. We will consider this becoming part of Curator 2.0.

from curator.

divanikus avatar divanikus commented on June 9, 2024

Actually, it would be nice to have a generic cli tool for es, to be able to interact with it with unix shell comfortably. I mean something like

es indices | grep -05- | xargs es close

Currently there is no such tool, most of present ones are just for one thing only, like es2unix or curator.

from curator.

untergeek avatar untergeek commented on June 9, 2024

Generic CLI tools don't deal with timeouts and things very well, unfortunately. Elasticsearch can be local, or it might be across the datacenter, or somewhere else in AWS.

from curator.

divanikus avatar divanikus commented on June 9, 2024

You can always make --host & --port options...

from curator.

jordansissel avatar jordansissel commented on June 9, 2024

You can achieve 'es indices | ... ' with the _cat api and xargs and curl. Grep will never understand time, so it's not a fit for what curator focuses on today (time-oriented indices)

% curl -s localhost:9200/_cat/indices | fex 2 | grep logstash- | xargs -n1 sh -c 'curl -XPOST localhost:9200/$1/_close' -
{"acknowledged":true}

Or really, your specific case, you don't need grep.

% curl -s localhost:9200/*-05-*/_close

from curator.

divanikus avatar divanikus commented on June 9, 2024

Yes, but typing so much curl is pain.

from curator.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.