-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
38 lines (35 loc) · 1.67 KB
/
Copy path.env.example
File metadata and controls
38 lines (35 loc) · 1.67 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Copy this file to .env and fill in your values:
# cp .env.example .env
#
# The .env file is read from the current directory first, then from the
# directory containing lz-ai-query.py. Real environment variables and the
# --host / --token flags override it.
# Base URL of your LogZilla server (http:// or https://).
#
# Do NOT append /api -- this tool adds it itself. A pasted /api suffix is
# stripped rather than producing /api/api/..., but leaving it off is clearer.
#
# A base path IS supported, for a LogZilla behind a reverse proxy on a
# subpath (e.g. https://example.com/logzilla). Both the REST calls and the
# chat WebSocket are built from it, so set it here if that is your setup.
LZ_HOST=http://logzilla.example.com
# LogZilla API auth token.
#
# Tokens are created on the LogZilla server with the CLI, as root or via sudo
# -- there is no way to create one from the web UI:
#
# sudo logzilla authtoken create
# Creating USER token
# user-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
#
# The token is the last line of the output. To create one for a specific
# LogZilla user, add -U <username>. List existing tokens with
# `logzilla authtoken list`, and revoke one with `logzilla authtoken revoke`.
#
# Use a full USER token. An ingest-only token (created with --ingest-only, and
# prefixed "ingest-") only works for sending events to /incoming and is
# rejected by the API this tool uses.
LZ_API_TOKEN=user-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
# LogZilla's own documentation uses LOGZILLA_HOST / LOGZILLA_API_KEY in its
# examples. This tool accepts those names too, so if you already export them
# for `logzilla query`, you can leave the two settings above unset.