I have created the pipeline using http_poller to pull the serviceNow CI records.
To pull more than 2000 records, i am hitting the ServiceNow api multiple time with setting up start and count values using http_poller in pipeline.
However currently i am receiving the duplicates records also, why i am receiving those duplicate records and how can i overcome from its.
below is my pipeline config file.
input {
http_poller {
urls => {
records2000 => {
# Supports all options supported by ruby's Manticore HTTP client
method => get
url => "https://service-now.com/api/bebup/config/ci/query/list?encoded_query=install_status!%3D104%26start%3D1%26count%3D2000%26use_display_value%3DTRUE"
headers => {
Accept => "application/json"
}
}
records4000 => {
# Supports all options supported by ruby's Manticore HTTP client
method => get
url => "https://service-now.com/api/bebup/config/ci/query/list?encoded_query=install_status!%3D104%26start%3D2001%26count%3D4000%26use_display_value%3DTRUE"
headers => {
Accept => "application/json"
}
}
}
request_timeout => 90
schedule => { cron => "0 0 * * *"}
socket_timeout => 90
codec => "json"
# A hash of request metadata info (timing, response headers, etc.) will be sent here
# metadata_target => "http_poller_metadata"
}
}