Is there any way to get the run_id of a meltano ru...
# troubleshooting
t
Is there any way to get the run_id of a meltano run other than from the internal DB? Really what I'm after is the log file for the run but that is in a directory named for the run_id, so...
v
I do this
meltano run tap-name target-name > \log\somewhere_$timestamp_here 2>&1
t
Yeah, i suppose I should just proactively generate my own log rather than depending on the one meltano generates... hadn't thought about that. Thanks @visch!
v
Yeah idk what the best option is 🤷 I think a combo of the idea I listed with using a
logging.yaml
file would do the trick as well and give you more control
So instead of redirecting* maybe use https://docs.meltano.com/guide/logging#logging and direct the files to where you want them to go 🤷
t
🤔
Ah, with the
--log-config
option I think that would work nicely... I would get better logging control without impacting how logging behaves for all runs.
I'm working on a script to execute meltano and process the output for various purposes so I don't necessarily want to control how logging behaves for all executions of meltano, only those run by my script... which would happen if I created a logging.yaml.
Anyway, thanks for listening 😉