Giter VIP home page Giter VIP logo

collector's People

Contributors

adheipsingh avatar deepsource-autofix[bot] avatar nitisht avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

collector's Issues

Failed to push logs to parseable server

req: &{GET http://parseable.default.svc.cluster.local/api/v1/query HTTP/1.1 1 1 map[Authorization:[Basic cGFyc2VhYmxlOnBhcnNlYWJsZQ==] Content-Type:[application/json] User-Agent:[Parseable collector ( │
│ time="2022-08-13T12:37:20Z" level=error msg="unexpected status code: 405 while querying log data timestamp in stream: demoapp"

Send Metadata to parseable in headers

curl --location --request POST 'https://demo.parseable.io/api/v1/logstream/frontend' \
--header 'X-P-META-Host: 10.116.0.3' \
--header 'X-P-META-Source: 10.244.0.147' \
--header 'X-P-META-ContainerName: log-generator' \
--header 'X-P-META-ContainerImage: mingrammer/flog' \
--header 'X-P-META-PodLabels: app=go-app,pod-template-hash=6c87bc9cc9' \
--header 'X-P-TAGS-AppName: go-app' \
--header 'X-P-TAGS-System: golang' \
--header 'Authorization: Basic password' \
--header 'Content-Type: application/json' \
--data-raw '[
    {
        "id": 2,
        "host":"153.10.110.81", 
        "user-identifier":"-", 
        "datetime":"24/Jun/2022:14:12:15 +0000", 
        "method": "DELETE", 
        "request": "/virtual/drive", 
        "protocol":"HTTP/2.0", 
        "status":500, 
        "bytes":21969, 
        "referer": "http://www.seniordisintermediate.net/mesh/users"
    }
]

Add validation for stream name

  • if stream exists already response is 400

  • if stream name does have "-" or any character response is 400.

  • Add validation for string for stream name and exit 1.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.