Skip to content

Conversation

@rubencaro
Copy link

We have come to the situation where it would be very helpful to be able to add some regexp support to the index name pattern.

That pattern is actually passed to moment.js, and there's the possibility to escape a part of it (with square brackets). We need to be able to allow that text inside square brackets (therefore harmless for moment.js) to be a (rather limited) regexp.

A code example works like this:

// pattern given to moment.js => "[.*tres] YYYY"
// output from moment.js
var possible = [ '.*tres 2001','.*tres 2002','.*tres 2003' ]; 

// actual indices available
var p = ['1dos 2001','dostres 2001','12345678tres 2001','holatres 2003','holatres 2004']; 

//indices that will be finnally taken into account
var indices = []; 

_.each(possible, function(patt){
  _.each(p, function(idx){
    var result = new RegExp(patt).exec(idx);
    if(result !== null)indices.push(idx);
  });
});

indices => ['dostres 2001','12345678tres 2001','holatres 2003']

Maybe there's something you would do different, so I'm totally up for comments and fixes. But I hope I made clear what our requirement is.

Thanks.

@DanielRedOak
Copy link

I am interested in this as well. Being able to have multiple indices in the dashboard via regex would be incredibly useful.

@spalger
Copy link
Contributor

spalger commented Oct 6, 2014

Woops! Sorry about that! We recently replaced the master branch with Kibana 4. This action force closed all of the old pull requests against master. We will be reviewing these on a case-by-case basis and creating new tickets as necessary.

The good news is that many long requested features can be found in Kibana 4, and we're being entirely open about our roadmap. Check out the roadmap tickets (which we're still filling in) here.

If you're looking for the old Kibana 3 code you can find it here.

@w33ble
Copy link
Contributor

w33ble commented Oct 8, 2014

We're stopping development on Kibana 3 and focusing on Kibana 4 going forward. If you'd like to propose this in Kibana 4, please open a new issue for it.

edmarmoretti pushed a commit to edmarmoretti/kibana-pt-br that referenced this pull request Sep 7, 2025
edmarmoretti pushed a commit to edmarmoretti/kibana-pt-br that referenced this pull request Sep 7, 2025
# [21.0.0](elastic/elastic-charts@v20.0.2...v21.0.0) (2020-08-10)

### Bug Fixes

* update dep vulnerabilities, minimist and kind-of ([elastic#763](elastic/elastic-charts#763)) ([4455281](elastic/elastic-charts@4455281))
* **legend:** fix color anchor, add action context, fix action padding ([elastic#774](elastic/elastic-charts#774)) ([4590a22](elastic/elastic-charts@4590a22))
* **tooltip:** placement with left/top legends and single bars ([elastic#771](elastic/elastic-charts#771)) ([e576b26](elastic/elastic-charts@e576b26)), closes [elastic#769](elastic/elastic-charts#769) [elastic#770](elastic/elastic-charts#770)

### Features

* streamgraph and fit functions on stacked charts ([elastic#751](elastic/elastic-charts#751)) ([268fcc0](elastic/elastic-charts@268fcc0)), closes [elastic#766](elastic/elastic-charts#766) [elastic#715](elastic/elastic-charts#715) [elastic#450](elastic/elastic-charts#450)

### BREAKING CHANGES

* the first parameter of `PointStyleAccessor` and `BarStyleAccessor` callbacks is changed from `RawDataSeriesDatum` to `DataSeriesDatum`. `stackAsPercentage` prop is replaced by `stackMode` that accept one `StackMode`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants