fluent-plugin-splunk-hec icon indicating copy to clipboard operation
fluent-plugin-splunk-hec copied to clipboard

[Feature] Support raw API

Open yarinm opened this issue 7 years ago • 10 comments

It could be useful to add support for the /raw api of HEC. When using the /event endpoint some rules (like LINEMERGE/BREAK) don't work and they only work when batching the logs in the raw endpoint.

yarinm avatar Nov 07 '18 08:11 yarinm

Hi @yarinm - i agree. For most of our connectors that are sending things to Splunk via HEC we add support for both endpoints.

dtregonning avatar Nov 07 '18 19:11 dtregonning

This feature would be greatly appreciated! The JSON endpoint for the HEC doesn't do timestamp extraction so we're unable to post-process the timestamp via props.conf. So our events (coming in through ingested CSV files) all reflect ingest time instead of the actual occurrence time (contained in a field within the csv lines). Splunk allows timestamp extraction from the raw endpoint.

SVPA-LenPistoria avatar Dec 14 '18 22:12 SVPA-LenPistoria

@SVPA-LenPistoria you should take a look at my PR https://github.com/splunk/fluent-plugin-splunk-hec/pull/18

It adds the ability to define a field in the record that will be used as the event time when sending this to HEC

yarinm avatar Dec 19 '18 08:12 yarinm

@yarinm This would be an even-better solution to my woes! Let's hope your PR gets merged soon! Thanks!

SVPA-LenPistoria avatar Dec 19 '18 17:12 SVPA-LenPistoria

+1 on sending via the raw endpoint. I'm keen to use Splunk to do the timestamp extraction rather than trying to do it within fluent.

mark-sivill-splunk avatar Mar 16 '19 18:03 mark-sivill-splunk

From my point of view, line breaking/merging should be done on Splunk side. I created prototype and there is also this branch, both adding an option for using the RAW endpoint instead of the EVENT endpoint. I tested it and it worked for me. Many Splunk customers are asking for this. Anyone interested in working on a PR?

hovu96 avatar Jul 19 '19 20:07 hovu96

Are there any news on this Issue? we are looking forward to use the raw endpoint. Right now we are not able to get a "java-stracktrace" as a single event into splunk.

jsiegele avatar Oct 17 '19 09:10 jsiegele

I'm really interested to add the possibility to send via the raw endpoint too. Is there any news?

anthonyhaussman avatar Jan 09 '20 16:01 anthonyhaussman

Is there any plan to implement this feature?

leowinterde avatar Jul 20 '22 08:07 leowinterde