You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5-9Lines changed: 5 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -55,19 +55,13 @@ docker run -p 8000:8000 \
55
55
56
56
Once this runs successfully, you'll see dashboard at [http://localhost:8000](http://localhost:8000). You can login to the dashboard default credentials `admin`, `admin`.
57
57
58
-
### Create a stream
58
+
### Send log events
59
59
60
60
```sh
61
-
curl --location --request PUT 'http://localhost:8000/api/v1/logstream/demo' \
62
-
--header 'Authorization: Basic YWRtaW46YWRtaW4='
63
-
```
64
-
65
-
### Send events to the stream
66
-
67
-
```sh
68
-
curl --location --request POST 'http://localhost:8000/api/v1/logstream/demo' \
61
+
curl --location --request POST 'http://localhost:8000/api/v1/ingest' \
@@ -83,6 +77,8 @@ curl --location --request POST 'http://localhost:8000/api/v1/logstream/demo' \
83
77
]'
84
78
```
85
79
80
+
Note: The `X-P-Stream` header is used to specify the log stream where data is sent. Parseable will create the stream automatically if it doesn't exist already.
81
+
86
82
### Query the stream
87
83
88
84
You can see the events in Parseable UI, or use the below curl command to see the query response on CLI.
0 commit comments