This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
select | |
* | |
from | |
information_schema.processlist | |
where | |
ID <> connection_id() and | |
USER not in ('system user', 'repl', 'rdsrepladmin') and | |
COMMAND not in ('Sleep', 'Daemon') | |
order by | |
TIME desc; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
import re | |
import datetime | |
elasticsearch_url = 'http://elasticsearch' | |
req = requests.get(elasticsearch_url + '/_aliases?pretty=true') | |
indexes_json = req.json() |