Skip to content

Run http_client and exit #2477

Closed Answered by omers
omers asked this question in Q&A
Discussion options

You must be logged in to vote

OK, Managed to solve it with the following config:

input:
  label: "scrape_site"
  read_until:
    input:
      http_client:
        url: "https://************"
        verb: GET
        timeout: 5s
        retry_period: 30s
        max_retry_backoff: 30s
        retries: 3
        backoff_on:
          - 429
        drop_empty_bodies: true
        stream:
          enabled: false
          reconnect: true
          scanner:
            csv:
              parse_header_row: true
          max_buffer: 1000000
    check: true
    restart_input: false
    idle_timeout: 2s

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by omers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants