Skip to content

Commit 112959e

Browse files
authored
Update readme and prepare for next release (#154)
1 parent 768fcb4 commit 112959e

File tree

4 files changed

+55
-53
lines changed

4 files changed

+55
-53
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ key.pem
88
.vscode
99
helm-releases/.DS_Store
1010
.DS_Store
11+
env-file

README.md

Lines changed: 42 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,25 @@ It ingests log data via HTTP POST calls and exposes a query API to search and an
4646
## Getting Started
4747

4848
### Docker
49-
Parseable docker image is available on [Docker hub](https://hub.docker.com/r/parseable/parseable).
49+
Parseable docker image is available on [Docker hub](https://hub.docker.com/r/parseable/parseable). Please remember to change the environment variables as relevant.
5050

5151
```sh
52-
mkdir -p /tmp/parseable
52+
cat << EOF > parseable-env
53+
P_S3_URL=https://minio.parseable.io:9000
54+
P_S3_ACCESS_KEY=minioadmin
55+
P_S3_SECRET_KEY=minioadmin
56+
P_S3_REGION=us-east-1
57+
P_S3_BUCKET=parseable
58+
P_LOCAL_STORAGE=/data
59+
P_USERNAME=parseable
60+
P_PASSWORD=parseable
61+
EOF
62+
63+
mkdir -p /tmp/data
5364
docker run \
5465
-p 8000:8000 \
55-
-v /tmp/parseable:/data \
66+
--env-file parseable-env \
67+
-v /tmp/data:/data \
5668
parseable/parseable:latest
5769
```
5870

@@ -66,45 +78,48 @@ helm install parseable parseable/parseable --namespace parseable
6678
```
6779

6880
### Binary
69-
Parseable binary is available on [Github releases](https://github.com/parseablehq/parseable/releases). Please download the latest release for your platform.
81+
Parseable binary is available on [Github releases](https://github.com/parseablehq/parseable/releases). Please download the latest release for your platform, also make sure to change the environment variables as relevant.
7082

7183
```sh
84+
export P_S3_URL="https://minio.parseable.io:9000"
85+
export P_S3_ACCESS_KEY="minioadmin"
86+
export P_S3_SECRET_KEY="minioadmin"
87+
export P_S3_REGION="us-east-1"
88+
export P_S3_BUCKET="parseable"
89+
export P_LOCAL_STORAGE="./data"
90+
export P_USERNAME="parseable"
91+
export P_PASSWORD="parseable"
7292
chmod +x parseable
7393
./parseable
7494
```
7595

7696
<h1></h1>
7797

78-
Parseable dashboard is available at [http://localhost:8000](http://localhost:8000). Default username and password is `parseable`.
79-
80-
By default Parseable uses a public bucket to store the data. Please change the object storage credentials to your own bucket, before using Parseable.
98+
Parseable dashboard is available at [http://localhost:8000](http://localhost:8000). Credentials to login to the dashboard are the values you set in the environment variables.
8199

82100
:memo: Parseable is in alpha stage and will evolve over time. There may be breaking changes between releases. Please give us your feedback in [Slack](https://launchpass.com/parseable), or [Issues](https://github.com/parseablehq/parseable/issues/new).
83101

84-
### Configuration
85-
86-
Parseable can be configured using environment variables listed below, with sample values.
102+
## Using Parseable
103+
`<stream-name>` is the name of the stream you want to create. `<basic-auth-header>` is the basic auth header value generated from username & password of the user you created in the environment variables. You can generate the basic auth header value using the following command.
87104

88105
```sh
89-
export P_S3_URL="https://minio.parseable.io:9000"
90-
export P_S3_ACCESS_KEY="minioadmin"
91-
export P_S3_SECRET_KEY="minioadmin"
92-
export P_S3_REGION="us-east-1"
93-
export P_S3_BUCKET="parseable"
94-
export P_LOCAL_STORAGE="./data"
95-
export P_USERNAME="parseable"
96-
export P_PASSWORD="parseable"
106+
echo -n '<user-name>:<password>' | base64
97107
```
98108

99-
## Live Demo
109+
### Create a stream
100110

101-
Try out Parseable server with our demo instance. Send log data to default log stream `frontend`
111+
```sh
112+
curl --location --request PUT 'http://localhost:8000/api/v1/logstream/<stream-name>' \
113+
--header 'Authorization: Basic <basic-auth-header>'
114+
```
115+
116+
### Send events to the stream
102117

103118
```sh
104-
curl --location --request POST 'https://demo.parseable.io/api/v1/logstream/frontend' \
119+
curl --location --request POST 'http://localhost:8000/api/v1/logstream/<stream-name>' \
105120
--header 'X-P-META-meta1: value1' \
106121
--header 'X-P-TAG-tag1: value1' \
107-
--header 'Authorization: Basic cGFyc2VhYmxlOnBhcnNlYWJsZQ==' \
122+
--header 'Authorization: Basic <basic-auth-header>' \
108123
--header 'Content-Type: application/json' \
109124
--data-raw '[
110125
{
@@ -119,26 +134,11 @@ curl --location --request POST 'https://demo.parseable.io/api/v1/logstream/front
119134
]'
120135
```
121136

122-
Access the Parseable dashboard to verify the log data is present
123-
124-
<table>
125-
<tr>
126-
<td>URL</td>
127-
<td><a href="https://demo.parseable.io" target="_blank">https://demo.parseable.io</a></td>
128-
</tr>
129-
<tr>
130-
<td>Username</td>
131-
<td>parseable</td>
132-
</tr>
133-
<tr>
134-
<td>Password</td>
135-
<td>parseable</td>
136-
</tr>
137-
</table>
138-
139-
For complete Parseable API documentation, refer to [Parseable API workspace on Postman](https://www.postman.com/parseable/workspace/parseable/overview).
140-
141-
:exclamation: Please do not store any sensitive data on this server as the data is openly accessible. We'll delete the data on this server periodically.
137+
For complete Parseable API documentation, refer to [Parseable API Ref Docs](https://www.parseable.io/docs/api-reference).
138+
139+
## Live Demo
140+
141+
You can also try out Parseable on our [https://demo.parseable.io](https://demo.parseable.io). Credentials to login to the dashboard are `parseable` / `parseable`.
142142

143143
## Contributing
144144

helm/parseable/values.yaml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ parseable:
44
repository: parseable/parseable
55
tag: v0.0.2
66
pullPolicy: IfNotPresent
7+
demo: true
78
env:
89
P_ADDR: "0.0.0.0:8000"
910
P_TLS_CERT_PATH: ""
@@ -12,13 +13,14 @@ parseable:
1213
RUST_LOG: "parseable=info"
1314
# By default parseable uses demo environment.
1415
# Please change this before running in production.
15-
#P_S3_URL: ""
16-
#P_S3_ACCESS_KEY: ""
17-
#P_S3_SECRET_KEY: ""
18-
#P_S3_REGION: ""
19-
#P_S3_BUCKET: ""
20-
P_USERNAME: "parseable"
21-
P_PASSWORD: "parseable"
16+
P_S3_URL: ""
17+
P_S3_ACCESS_KEY: ""
18+
P_S3_SECRET_KEY: ""
19+
P_S3_REGION: ""
20+
P_S3_BUCKET: ""
21+
P_LOCAL_STORAGE: ""
22+
P_USERNAME: ""
23+
P_PASSWORD: ""
2224
nameOverride: ""
2325
fullnameOverride: ""
2426
serviceAccount:

server/Cargo.toml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
[package]
22
name = "parseable"
3-
version = "0.0.3"
3+
version = "0.0.4"
44
authors = [
5-
"NitishTiwari <[email protected]>",
6-
"AdheipSingh <[email protected]>",
5+
"Parseable Team <[email protected]>",
76
]
87
edition = "2021"
9-
categories = ["olap", "analytics-store"]
8+
categories = ["olap", "logging", "analytics-store"]
109

1110
[dependencies]
1211
actix-web-httpauth = "0.6"

0 commit comments

Comments
 (0)