29 Dec 2022 02:47 PM - last edited on 20 Apr 2023 09:00 AM by educampver
I'm currently building an app that allows ingestion of known IPs that are sources of attacks. My current solutions is ingesting it as a dimension in a metric (as specified here), but that seems a little 'hack-y' to me.
Is there a better way to ingest non-numerical data?
Thank you.
Solved! Go to Solution.
30 Dec 2022 08:09 AM - last edited on 02 May 2023 02:26 PM by educampver
Hi,
This depends a little bit on how you want to use the ingested data after the ingestion.
You could ingest them as BizEvents , allowing you to define an object structure for the data. But similarly to Metrics, events are tied to a timestamp.
If you only want to use it within your app, maybe AppState would be an option.
Maybe you describe your use-case in more detail, so I can you even more insights.
Cheers
Christian
30 Dec 2022 08:40 AM
"known IPs that are sources of attacks" sounds like this is a lookup data source. At this point in time we support logs, events (including bizevents), spans and metrics with Grail. All these data types are immutable and have a strong relation to time.
Grail will support such lookup tables or snapshots at some point next year. If you can update this know IP's every day you might be able to use events as workaround.
02 Jan 2023 09:22 AM
Cool, thanks for your answers! While AppState (and Metrics, which I'm currently using) are workarounds, I feel like snapshots are the actually correct way to ingest this kind of data.
Thank you for the explanation!