浏览代码

hide domian name in access filename.

duh@133.cn 4 年之前
父节点
当前提交
729465c8e8
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      golang/nginx_log_timerange/main.go

+ 1 - 1
golang/nginx_log_timerange/main.go

@@ -105,7 +105,7 @@ func writeFile(file string, ch <-chan *logFormat) {
 const (
 	startTimeStr = "2020-07-17 17:30:00"
 	endTimeStr   = "2020-07-17 20:10:00"
-	srcFile      = "/opt/tools/access-ftbook.hbgj.huoli.local-http.log_2020-07-17-1"
+	srcFile      = "/opt/tools/access.log_2020-07-17-1"
 	dstFile      = "/opt/tools/result"
 )