You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by ha...@apache.org on 2026/03/28 15:11:45 UTC
(skywalking-banyandb) branch feat/accesslog-subdir created (now db99531af)
This is an automated email from the ASF dual-hosted git repository.
hanahmily pushed a change to branch feat/accesslog-subdir
in repository https://gitbox.apache.org/repos/asf/skywalking-banyandb.git
at db99531af feat(liaison): organize access logs under dedicated accesslog subdirectory
This branch includes the following new commits:
new db99531af feat(liaison): organize access logs under dedicated accesslog subdirectory
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
(skywalking-banyandb) 01/01: feat(liaison): organize access logs under dedicated accesslog subdirectory
Posted by ha...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
hanahmily pushed a commit to branch feat/accesslog-subdir
in repository https://gitbox.apache.org/repos/asf/skywalking-banyandb.git
commit db99531af18662a88ac5e81cc3347ceb679475b0
Author: Hongtao Gao <ha...@gmail.com>
AuthorDate: Sat Mar 28 14:59:13 2026 +0000
feat(liaison): organize access logs under dedicated accesslog subdirectory
- Append '/accesslog' to the access log root path during server startup
- Create the accesslog directory automatically if it does not exist
- All ingestion and query access logs are now written to the accesslog subdirectory
- Improves log organization and separates access logs from other application data
- No changes required to service implementations; behavior is automatic for all services
---
CHANGES.md | 6 ++++++
banyand/liaison/grpc/server.go | 6 ++++++
2 files changed, 12 insertions(+)
diff --git a/CHANGES.md b/CHANGES.md
index ba7ef127a..f3b2df450 100644
--- a/CHANGES.md
+++ b/CHANGES.md
@@ -2,6 +2,12 @@
Release Notes.
+## 0.11.0
+
+### Features
+
+- Organize access logs under a dedicated "accesslog" subdirectory to improve log organization and separation from other application data.
+
## 0.10.0
### Features
diff --git a/banyand/liaison/grpc/server.go b/banyand/liaison/grpc/server.go
index a78ebd004..a73cdfd7b 100644
--- a/banyand/liaison/grpc/server.go
+++ b/banyand/liaison/grpc/server.go
@@ -21,6 +21,7 @@ package grpc
import (
"context"
"net"
+ "path/filepath"
"runtime/debug"
"strconv"
"strings"
@@ -44,6 +45,7 @@ import (
propertyv1 "github.com/apache/skywalking-banyandb/api/proto/banyandb/property/v1"
streamv1 "github.com/apache/skywalking-banyandb/api/proto/banyandb/stream/v1"
tracev1 "github.com/apache/skywalking-banyandb/api/proto/banyandb/trace/v1"
+ "github.com/apache/skywalking-banyandb/banyand/internal/storage"
"github.com/apache/skywalking-banyandb/banyand/liaison/grpc/route"
"github.com/apache/skywalking-banyandb/banyand/liaison/pkg/auth"
"github.com/apache/skywalking-banyandb/banyand/metadata"
@@ -52,6 +54,7 @@ import (
"github.com/apache/skywalking-banyandb/banyand/protector"
"github.com/apache/skywalking-banyandb/banyand/queue"
"github.com/apache/skywalking-banyandb/pkg/bydbql"
+ fslib "github.com/apache/skywalking-banyandb/pkg/fs"
"github.com/apache/skywalking-banyandb/pkg/logger"
"github.com/apache/skywalking-banyandb/pkg/partition"
banyandbpath "github.com/apache/skywalking-banyandb/pkg/path"
@@ -228,6 +231,9 @@ func (s *server) PreRun(ctx context.Context) error {
if s.accessLogRootPath, err = banyandbpath.Get(s.accessLogRootPath); err != nil {
return err
}
+ s.accessLogRootPath = filepath.Join(s.accessLogRootPath, "accesslog")
+ lfs := fslib.NewLocalFileSystemWithLogger(s.log.Named("accesslog"))
+ lfs.MkdirIfNotExist(s.accessLogRootPath, fslib.Mode(storage.DirPerm))
}
if s.certFile != "" {
if s.certFile, err = banyandbpath.Get(s.certFile); err != nil {