Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
L
loit-build-common
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
loit-Infrastructure
loit-build-common
Commits
5f82d34d
提交
5f82d34d
authored
6月 11, 2021
作者:
chenshiying
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[新增] 配置修改
上级
33baa881
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
11 行增加
和
3 行删除
+11
-3
READEME.md
loit-build-component/loit-build-deploy-env/READEME.md
+4
-2
GeneratorLogstashScript.java
.../java/com/loit/common/script/GeneratorLogstashScript.java
+6
-0
logstash-conf.ftl
...ploy-env/src/main/resources/template/sh/logstash-conf.ftl
+1
-1
没有找到文件。
loit-build-component/loit-build-deploy-env/READEME.md
浏览文件 @
5f82d34d
...
...
@@ -193,11 +193,13 @@ ssh root@10.0.120.195 "nohup /usr/local/logstash-6.4.3/bin/logstash --path.data=
(10.0.120.26 192.169.201.14) 日志收集与展示服务器3
cd /home/soft/deploy
登录服务器
(10.0.120.26 192.169.201.14) 日志收集与展示服务器3
```shell
cd /home/soft/deploy
pssh -h /home/soft/deploy/server/host_ip_push_script.txt -i bash /home/soft/logstash-stop-portal.sh
pssh -h /home/soft/deploy/server/host_ip_push_script.txt -i bash /home/soft/logstash-start-portal.sh
...
...
loit-build-component/loit-build-deploy-env/src/main/java/com/loit/common/script/GeneratorLogstashScript.java
浏览文件 @
5f82d34d
...
...
@@ -139,6 +139,12 @@ public class GeneratorLogstashScript {
Map
model
=
new
HashMap
();
model
.
put
(
"mapList"
,
mapList
);
if
(
"portal"
.
equals
(
folderName
))
{
model
.
put
(
"esindex"
,
"portal"
);
}
else
{
model
.
put
(
"esindex"
,
"sone"
);
}
String
result
=
FreeMarkerUtils
.
process
(
"sh\\logstash-conf.ftl"
,
model
);
FileUtils
.
write
(
logstashFileName
,
result
);
}
...
...
loit-build-component/loit-build-deploy-env/src/main/resources/template/sh/logstash-conf.ftl
浏览文件 @
5f82d34d
...
...
@@ -33,6 +33,6 @@ output {
}
elasticsearch {
hosts => ["10.0.120.212:9200","10.0.120.44:9200","10.0.120.143:9200"]
index => "loit
sone
-%{+YYYY.MM}-%{+xxxx.ww}"
index => "loit
${esindex}
-%{+YYYY.MM}-%{+xxxx.ww}"
}
}
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论