JSON Lines (JSONL)
Table of Contents
The target-jsonl Meltano loader sends data into JSON Lines (JSONL) after it was pulled from a source using an extractor.
Getting Started #
Prerequisites #
If you haven't already, follow the initial steps of the Getting Started guide:
Installation and configuration #
Using the Command Line Interface #
-
Add the
target-jsonlloader to your project usingmeltano add:meltano add loader target-jsonl -
Configure the settings below using
meltano config.
Next steps #
Follow the remaining steps of the Getting Started guide:
If you run into any issues, learn how to get help.
Capabilities #
Settings #
These and other supported settings are documented below. To quickly find the setting you're looking for, use the Table of Contents at the top of the page.
Destination Path (destination_path)
#
-
Environment variable:
TARGET_JSONL_DESTINATION_PATH - Default:
output
Sets the destination path the JSONL files are written to, relative to the project root.
The directory needs to exist already, it will not be created automatically.
To write JSONL files to the project root, set an empty string ("").
How to use #
Manage this setting using
meltano config or an
environment variable:
meltano config target-jsonl set destination_path <destination_path>
export TARGET_JSONL_DESTINATION_PATH=<destination_path>
Include Timestamp in File Names (do_timestamp_file)
#
-
Environment variable:
TARGET_JSONL_DO_TIMESTAMP_FILE - Default:
false
Specifies if the files should get timestamped.
By default, the resulting file will not have a timestamp in the file name (i.e. exchange_rate.jsonl).
If this option gets set to true, the resulting file will have a timestamp associated with it (i.e. exchange_rate-{timestamp}.jsonl).
How to use #
Manage this setting using
meltano config or an
environment variable:
meltano config target-jsonl set do_timestamp_file true
export TARGET_JSONL_DO_TIMESTAMP_FILE=trueLooking for help? #
If you're having trouble getting the
target-jsonl loader to work, look for an
existing issue in its repository, file a new issue,
or
join the Meltano Slack community
and ask for help in the #plugins-general channel.
Found an issue on this page? #
This page is generated from a YAML file that you can contribute changes to. Edit it on GitHub!