# While using httpjson input in filebeat getting error Exiting: Failed to start crawler

**URL:** <https://discuss.elastic.co/t/while-using-httpjson-input-in-filebeat-getting-error-exiting-failed-to-start-crawler/374873>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [February 21, 2025, 10:15pm UTC](https://discuss.elastic.co/t/while-using-httpjson-input-in-filebeat-getting-error-exiting-failed-to-start-crawler/374873 "2025-02-21T22:15:12Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![rajaram.patil](https://avatars.discourse-cdn.com/v4/letter/r/b19c9b/32.png) [@rajaram.patil](https://discuss.elastic.co/u/rajaram.patil)\
**Post date:** [February 21, 2025, 10:15pm UTC](https://discuss.elastic.co/t/while-using-httpjson-input-in-filebeat-getting-error-exiting-failed-to-start-crawler/374873/1 "2025-02-21T22:15:12Z")

</div>

While using httpjson input in filebeat getting below error  
Exiting: Failed to start crawler: starting input failed: error while initializing input: template: :1: bad character U+0040 '@' accessing 'filebeat.inputs.0.cursor.@nextUrl.value' (source:'filebeat.yml')

The response containts @nextUrl value which I want to set as cursor value for next call.

Below configuration fails, however it works for other fields where there is no @ sign in the filed name.

cursor:  
'@nextUrl':  
value: '[[.last\_response.body.@nextUrl]]'

Please advise

---

<div class="post-metadata">

**Author:** ![rajaram.patil](https://avatars.discourse-cdn.com/v4/letter/r/b19c9b/32.png) [@rajaram.patil](https://discuss.elastic.co/u/rajaram.patil)\
**Post date:** [February 24, 2025, 6:55pm UTC](https://discuss.elastic.co/t/while-using-httpjson-input-in-filebeat-getting-error-exiting-failed-to-start-crawler/374873/2 "2025-02-24T18:55:31Z")

</div>

Hi Any advice on above query please?

---

<div class="post-metadata">

**Author:** ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)\
**Post date:** [February 24, 2025, 6:57pm UTC](https://discuss.elastic.co/t/while-using-httpjson-input-in-filebeat-getting-error-exiting-failed-to-start-crawler/374873/3 "2025-02-24T18:57:59Z")

</div>

You need to share the input you are using, you didn't share any information about it.

Please share the entire configuration that you are using in your input and `filebeat.yml`.

---

<div class="post-metadata">

**Author:** ![rajaram.patil](https://avatars.discourse-cdn.com/v4/letter/r/b19c9b/32.png) [@rajaram.patil](https://discuss.elastic.co/u/rajaram.patil)\
**Post date:** [February 24, 2025, 7:57pm UTC](https://discuss.elastic.co/t/while-using-httpjson-input-in-filebeat-getting-error-exiting-failed-to-start-crawler/374873/4 "2025-02-24T19:57:34Z")

</div>

Thank you for your response @leandrojmp

The Response I get from the API is

{  
"data": [  
{  
"Key1": "Value1",  
"Key2": "Value1"  
},  
{  
"Key3": "Value3",  
"Key4": "Value4"  
}  
],  
"status": 200,  
"@nextUrl": "",  
"code": 0,  
"message": null  
}

And Filebeat.yml is as below.

filebeat.inputs:

- type: httpjson  
interval: 1m

---

<div class="post-metadata">

**Author:** ![rajaram.patil](https://avatars.discourse-cdn.com/v4/letter/r/b19c9b/32.png) [@rajaram.patil](https://discuss.elastic.co/u/rajaram.patil)\
**Post date:** [February 26, 2025, 6:48pm UTC](https://discuss.elastic.co/t/while-using-httpjson-input-in-filebeat-getting-error-exiting-failed-to-start-crawler/374873/5 "2025-02-26T18:48:06Z")

</div>

@leandrojmp : Please let me know if the input and filebeat helps and any solution for this use case.

---

<div class="post-metadata">

**Author:** ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)\
**Post date:** [February 26, 2025, 9:53pm UTC](https://discuss.elastic.co/t/while-using-httpjson-input-in-filebeat-getting-error-exiting-failed-to-start-crawler/374873/6 "2025-02-26T21:53:05Z")

</div>

I have no clue, I do not use this input, but searching on the forum I found a similar [post](https://discuss.elastic.co/t/filebeat-pagination-doesnt-support-in-field-name-azure-graphapi/347621).

It seems that the `httpjson` does not suport fields with `@` in the name.

You may need a response from someone from Elastic or maybe open an issue in Github.
