Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deep glob not finding files #241

Open
yaauie opened this issue Jun 25, 2019 · 0 comments
Open

Deep glob not finding files #241

yaauie opened this issue Jun 25, 2019 · 0 comments

Comments

@yaauie
Copy link
Contributor

yaauie commented Jun 25, 2019

Moved from elastic/logstash#10800

  • Version: 7.0.1
  • Operating System: Ubuntu 18.04 LTS
  • Config File (if you have sensitive info, please remove it):
input {
    file {
        id => "perfmon-in"
        path => "/data/tracelogger/tracelogger_data/*/*/*/*/*/*/*/*/PerfMon*"
        sincedb_path => "/data/elk/logstash/sincedb"
        start_position => "beginning"
        tags => ["perfmon"]
    }
}

filter {
  csv {
    id => "perfmon-filter"
    autodetect_column_names => "true"
    convert => {
      "column1" => "date_time"
    }
  }
}

output {
    if "perfmon" in [tags]{

      elasticsearch
      {
    hosts => "${ELASTICSEARCH_HOST}:${ELASTICSEARCH_PORT}"
    manage_template => false
    index => "perfmon-%{+YYYY.MM.dd}"
    id => "perfmon-out"
      }
      stdout { codec => rubydebug }
    }
}
  • Sample Data:

Doesn't even find the file when trace debugs are on.

  • Steps to Reproduce:

I've tried with this path:

path => "/data/tracelogger/tracelogger_data/*/*/*/*/*/*/*/*/PerfMon*"

and it doesn't work, and it also doesn't work like this:

path => "/data/tracelogger/tracelogger_data/**/PerfMon*"

But it does work like this (fully described).

path => "/data/tracelogger/tracelogger_data/processed/AP4/10.66.132.23/2019-05-17_20-21-30/cm/log/ris/csv/PerfMon*"

Discussion here: https://discuss.elastic.co/t/recursive-depth-of-logstash-not-finding-my-files/181602/8

-- elastic/logstash#10800


Comment on original issue:

Same issue. Working with logstash "7.1.1".

My configs have many subdirectories, but I get a silent fail on "/some/path/**/*.txt"

-- @axpatito via comment on elastic/logstash#10800

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant