Elastic running, Kibana running but now im trying to transform a test.log into Json using Filebeats, but when im running ./filebeat -c filebeat.yml
starts but never ends like if it was a listening service and im not recieving any json output.
The file test.log
im using just have 100 lines.
This is my filebeat config file:
input:
*the folder logstash it's just the folder name there is noting inside but the test.log file
# ============================== Filebeat inputs ===============================
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: filestream
# Unique ID among all inputs, an ID is required.
id: my-filestream-id
# Change to true to enable this input configuration.
enabled: true
# Paths that should be crawled and fetched. Glob based paths.
paths:
- /home/fitbank/logstash/logstash-tutorial.log
#- c:\programdata\elasticsearch\logs\*
output:
# ---------------------------- Elasticsearch Output ----------------------------
#output.elasticsearch:
# Array of hosts to connect to.
#hosts: ["localhost:9200"]
# Performance preset - one of "balanced", "throughput", "scale",
# "latency", or "custom".
preset: balanced
# Protocol - either `http` (default) or `https`.
#protocol: "https"
# Authentication credentials - either API key or username/password.
#api_key: "id:api_key"
#username: "elastic"
#password: "changeme"
output.file:
path: "/home/fitbank/pruebasLogsBeats"
filename: filebeat
#rotate_every_kb: 10000
#number_of_files: 7
#permissions: 0600
#rotate_on_startup: true
I don't know where else to go..