hi all im trying to get one part of the file path ...
# support
k
hi all im trying to get one part of the file path and use it as Appname, here's my receiver code :
Copy code
filelog/xx:
  include: [ "/hostfs/home/xx/run/*/log/terminal.txt" ]
  start_at: end
  include_file_path: true
how do I take whats in the * ( usually it will be something like one of the following : ab1, gb1, rest1, messages1 so .e.g /hostfs/home/xx/run/ab1/log/terminal.txt) and send it along with the log line as appname . thanks for any pointers.
s