Ingest raw firewall log lines
curl --request POST \
--url https://app.onefirewall.com/api/v1/poc_traffic/direct/raw \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: text/plain' \
--data '<string>'import requests
url = "https://app.onefirewall.com/api/v1/poc_traffic/direct/raw"
payload = "<string>"
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "text/plain"
}
response = requests.post(url, data=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'text/plain'},
body: '<string>'
};
fetch('https://app.onefirewall.com/api/v1/poc_traffic/direct/raw', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.onefirewall.com/api/v1/poc_traffic/direct/raw",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "<string>",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: text/plain"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app.onefirewall.com/api/v1/poc_traffic/direct/raw"
payload := strings.NewReader("<string>")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "text/plain")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://app.onefirewall.com/api/v1/poc_traffic/direct/raw")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "text/plain")
.body("<string>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.onefirewall.com/api/v1/poc_traffic/direct/raw")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'text/plain'
request.body = "<string>"
response = http.request(request)
puts response.read_body{
"message": "ok",
"queued": 500000,
"skipped": 500000
}<string><string><string><string><string><string><string><string>Traffic
Ingest raw firewall log lines
Any Content-Type, read as text. One event per line: JSON, CEF/LEEF, pfSense filterlog, Palo Alto CSV, key=value, Apache/ModSecurity. Unparsable lines are counted in skipped.
Roles: Super Admin (0), Member Admin (10).
POST
/
api
/
v1
/
poc_traffic
/
direct
/
raw
Ingest raw firewall log lines
curl --request POST \
--url https://app.onefirewall.com/api/v1/poc_traffic/direct/raw \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: text/plain' \
--data '<string>'import requests
url = "https://app.onefirewall.com/api/v1/poc_traffic/direct/raw"
payload = "<string>"
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "text/plain"
}
response = requests.post(url, data=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'text/plain'},
body: '<string>'
};
fetch('https://app.onefirewall.com/api/v1/poc_traffic/direct/raw', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.onefirewall.com/api/v1/poc_traffic/direct/raw",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "<string>",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: text/plain"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app.onefirewall.com/api/v1/poc_traffic/direct/raw"
payload := strings.NewReader("<string>")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "text/plain")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://app.onefirewall.com/api/v1/poc_traffic/direct/raw")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "text/plain")
.body("<string>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.onefirewall.com/api/v1/poc_traffic/direct/raw")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'text/plain'
request.body = "<string>"
response = http.request(request)
puts response.read_body{
"message": "ok",
"queued": 500000,
"skipped": 500000
}<string><string><string><string><string><string><string><string>Authorizations
JWT signed (HS256) with a per-user server-side secret; revocable per user. Token handling follows RFC8725 (JWT best current practices): algorithm pinned by the server, no none, claims checked against the live user record. See the API description for the compatibility forms (Basic, query parameter).
Query Parameters
Body
text/plain
The body is of type string.
Maximum string length:
5242880Pattern:
^[^\u0000-\u0008\u000B\u000C\u000E-\u001F\u007F]*$
