question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Name of indices with incrementing IDs

See original GitHub issue

Hi, i’d like to not query all indexes to keep the load reasonable, but unfortunately we’re not using date-based index names, but rather incrementing IDs. Is there any way to do something like QueryIndices = <myIndex_{highest_id}>?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
DeviaVircommented, Dec 6, 2018

@jangrewe

🤦‍♂️

Yep, ignore all of the above. I thought {now/d} was just to get the day, so it kept failing for me.

Thank you for pointing this out! cleans up all the added bloat

1reaction
RobertKirkcommented, May 6, 2020

Elasticsearch has index aliases which you can set up, and then point this exporter at the alias. See https://www.elastic.co/guide/en/elasticsearch/reference/7.7/indices-aliases.html

They can also be managed automatically if you’re using index lifecycle management: https://www.elastic.co/guide/en/elasticsearch/reference/current/overview-index-lifecycle-management.html

Read more comments on GitHub >

github_iconTop Results From Across the Web

Some sort of “different auto-increment indexes” per a primary ...
I want to make, lets call it, different auto-increment keys on id for each uid entry. So, I will add an entry with...
Read more >
Is a unique index required for a sequential (autoincrementing ...
Short answer: in InnoDB, the auto-increment column must be the leftmost column of some index, either the ...
Read more >
MySQL Tutorial :: 7.9 Using AUTO_INCREMENT
The AUTO_INCREMENT attribute can be used to generate a unique identity for new rows: CREATE TABLE animals ( id MEDIUMINT NOT NULL AUTO_INCREMENT,...
Read more >
How to create a column with unique, incrementing index value ...
Here we are using row_number window function over a global ordering of the dataframe. This will give us a sequential unique, incremental id....
Read more >
Defining an Auto Increment Primary Key in SQL Server - Chartio
CREATE TABLE books ( id INT NOT NULL, title VARCHAR(100) NOT NULL, primary_author VARCHAR(100), );. The problem here is, we have no way...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found