Hi everyone
The following is my filebeat input in my yml file-
filebeat.inputs:
# Each - is an input. Most options can be set at the input level, so
# you can use different inputs for various configurations.
# Below are the input specific configurations.
# filestream is an input for collecting log messages from files.
- type: log
# Change to true to enable this input configuration.
enabled: true
# Paths that should be crawled and fetched. Glob based paths.
paths:
- C:\elk stack\logs\*\*\*\access.log
tags: ["access"]
How can i extract a folder name as a field in my logstash config file?
for example, if my filepath is
From some reason split by \ is working in Ruby as split("\") -double backslash,however LS from some reason cannot accept that. If you replace with a special character like | or # then split it's working fine.
my file path gets saved in the field called log.file.path
how do i change your code accordingly cause right now i am getting this as the tail_no. field -
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.