Coder Social home page Coder Social logo

Comments (6)

caijinxu avatar caijinxu commented on May 19, 2024

ilogtail version:
sls-opensource-registry.cn-shanghai.cr.aliyuncs.com/ilogtail-community-edition/ilogtail:1.1.1

from ilogtail.

yyuuttaaoo avatar yyuuttaaoo commented on May 19, 2024

ilogtail version: sls-opensource-registry.cn-shanghai.cr.aliyuncs.com/ilogtail-community-edition/ilogtail:1.1.1

你好,与此相关的logtail配置文件和应用yaml配置能否脱敏后贴一下?我这里比较关注采集路径的配置,透明时请保留层级信息(如有2层就写a/b/warning.log)。另外问一下是什么容器环境呢?

from ilogtail.

caijinxu avatar caijinxu commented on May 19, 2024

ilogtail version: sls-opensource-registry.cn-shanghai.cr.aliyuncs.com/ilogtail-community-edition/ilogtail:1.1.1

你好,与此相关的logtail配置文件和应用yaml配置能否脱敏后贴一下?我这里比较关注采集路径的配置,透明时请保留层级信息(如有2层就写a/b/warning.log)。另外问一下是什么容器环境呢?

日志文件:/a/b/c/d/e/warn.log

logtail配置

enable: true
inputs:
- Type: file_log
  LogPath: /a/b/c/d
  FilePattern: '*.log'
  ContainerFile: true
  MaxDepth: 3
  ContainerInfo:
    K8sContainerRegex: aa
    K8sNamespaceRegex: bb
    ExternalEnvTag:
      _node_ip_: _node_ip_
      _node_name_: _node_name_
processors:
- Type: processor_split_log_regex
  SplitRegex: \d+\.\d+\.\d+\s\d+:\d+:\d+.*
  SplitKey: content
  PreserveOthers: true
flushers:
- Type: flusher_kafka
  Brokers:
  - 192.168.1.43:9092
  Topic: abc-logs

容器中的这个目录通过hostPath挂载到主机上,容器内和主机上目录结构一样

        - hostPath:
            path: /a/b/c/d/
            type: DirectoryOrCreate
          name: logpath

容器环境:
ACK v1.20.11-aliyun.1
Docker 19.3.5

from ilogtail.

yyuuttaaoo avatar yyuuttaaoo commented on May 19, 2024

这个问题我们会持续跟进

from ilogtail.

hanzoi avatar hanzoi commented on May 19, 2024

同样的问题,看起来光一个pod同一个日志文件就有很多句柄
image

from ilogtail.

yyuuttaaoo avatar yyuuttaaoo commented on May 19, 2024

问题已经定位,会尽快发版修复

from ilogtail.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.