Hello,World

elasticsearh 怎么去除文档中的空白

Elasticsearchwyntergreg 回复了问题 • 2 人关注 • 1 个回复 • 3068 次浏览 • 2017-05-02 18:26 • 来自相关话题

filebeat loadbalance 负载均衡问题

回复

Beatshailin0 回复了问题 • 2 人关注 • 2 个回复 • 8804 次浏览 • 2017-05-02 10:35 • 来自相关话题

社区网站更新日志

资讯动态medcl 发表了文章 • 14 个评论 • 3572 次浏览 • 2017-04-28 23:30 • 来自相关话题

这里专门用来放社区网站更新的日志。
 
  • 2017.4.28 支持 SSL

Snip20170428_1.png

 
这里专门用来放社区网站更新的日志。
 
  • 2017.4.28 支持 SSL

Snip20170428_1.png

 

分享一个ES导入导出数据的插件

Elasticsearchleighton_buaa 回复了问题 • 6 人关注 • 2 个回复 • 11574 次浏览 • 2017-05-02 18:09 • 来自相关话题

filebeat的host相关的字段,获取的机器的hostname,能否获取ip?

Beatszaqweb 回复了问题 • 2 人关注 • 1 个回复 • 11887 次浏览 • 2017-05-16 14:26 • 来自相关话题

帮个小忙,问下shield的存放位置

Elasticsearchmedcl 回复了问题 • 2 人关注 • 1 个回复 • 3355 次浏览 • 2017-04-29 10:51 • 来自相关话题

es列表对象统计

回复

Elasticsearchlsyoung 发起了问题 • 1 人关注 • 0 个回复 • 5454 次浏览 • 2017-04-28 15:30 • 来自相关话题

请教关于html_strip不管用的问题

Elasticsearchguotenv 回复了问题 • 6 人关注 • 5 个回复 • 5647 次浏览 • 2019-11-18 20:56 • 来自相关话题

关于ES的聚合

Elasticsearchxupiao 回复了问题 • 4 人关注 • 3 个回复 • 4132 次浏览 • 2017-05-02 17:55 • 来自相关话题

关于elastalert报警,多个规则可以结合使用吗?

Elasticsearchhaohao 回复了问题 • 2 人关注 • 1 个回复 • 5016 次浏览 • 2017-08-14 13:39 • 来自相关话题

Sql on Elasticsearch

Elasticsearchhill 发表了文章 • 9 个评论 • 8706 次浏览 • 2017-04-28 11:25 • 来自相关话题

esql
Git地址
https://github.com/unimassystem/esql5 

elsh.png

 
create table my_index.my_table (
id keyword,
name text,
age long,
birthday date
);

select * from my_index.my_type;

select count(*) from my_index.my_table group by age;
#Create table

字段参数,ES中分词规则、索引类型、字段格式等高级参数的支持

create table my_table (
name text (analyzer = ik_max_word),
dd text (index=no),
age long (include_in_all=false)
);


对象、嵌套字段支持 as

create table my_index (
id long,
name text,
obj object as (
first_name text,
second_name text (analyzer=pinyin)
)
);


create table my_index (
id long,
name text,
obj nested as (
first_name text,
second_name text (analyzer=pinyin)
)
);


ES索引高级参数支持 with option

create table my_index (
id long,
name text
) with option (
index.number_of_shards=10,
index.number_of_replicas = 1
);
#Insert/Bulk

单条数据插入
insert into my_index.index (name,age) values ('zhangsan',24);

多条插入
bulk into my_index.index (name,age) values ('zhangsan',24),('lisi',24);


对象数据插入,list,{}Map

insert into my_index.index (ds) values (['zhejiang','hangzhou']);

insert into my_index.index (dd) values ({address='zhejiang',postCode='330010'});
#select/Aggregations

select * from my_table.my_index where name like 'john *' and age between 20 and 30 and (hotel = 'hanting' or flight = 'MH4510');

地理位置中心点查询
select * from hz_point where geo_distance({distance='1km',location='30.306378,120.247427'});

地理坐标区域查询
select * from hz_point where geo_bounding_box({location={top_left='31.306378,119.247427',bottom_right='29.285797,122.172329'}});

pipeline统计 move_avg
select count(*) as total, moving_avg({buckets_path=total}) from my_index group by date_histogram({field=timestamp,interval='1h'});
Getting Started

环境要求python >= 2.7

export PYTHONHOME=(%python_path)
export PATH=$PYTHONHOME/bin:$PATH


安装第三方依赖包
pip install -r esql5.egg-info/requires.txt
或python setup.py install

运行esql5服务
(standalone):
cd esql5
python -m App.app

(with uwsgi)
cd esql5
uwsgi --ini conf/uwsgi.ini


shell终端:
python -m elsh.Command

bulk批量导入数据后查询的数据条数几乎都是3000或4000等这样的数据且不对

Elasticsearch匿名用户 回复了问题 • 4 人关注 • 2 个回复 • 3679 次浏览 • 2018-03-06 17:49 • 来自相关话题

困扰好久的 elk 收集自定义日志的mapping问题

Logstashjiakechong1642 回复了问题 • 2 人关注 • 2 个回复 • 8186 次浏览 • 2017-05-05 15:13 • 来自相关话题

ElasticSearch 5.x missing解决方案

Elasticsearchqweas11 回复了问题 • 3 人关注 • 2 个回复 • 5824 次浏览 • 2017-08-19 17:51 • 来自相关话题

ElasticSearch5.3.0 Java客户端运行实例?

Elasticsearchfhyes123 回复了问题 • 2 人关注 • 1 个回复 • 6305 次浏览 • 2017-04-27 16:15 • 来自相关话题