-
Notifications
You must be signed in to change notification settings - Fork 431
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mapping Cloudflare Logs onto ECS #504
Comments
@aleph-zero can you confirm that you are using the logpull API and that a single event may contain both the client<->edge and edge<->origin parts of the transaction, if both exist? |
Hi there, Yes, single event can contain both. Currently there are more than 60 fields in Cloudflare Enterprise Logs and tracks both communication between the Origin and Cloudflare and also between the Client and Cloudflare. So, all fields are being populated. I have attached example of log file in json with all the latest fields included. Please notice there are three new fields which are nested fields (array): 20190802_20190802T152500Z_20190802T153000Z_ef64f613.txt Please let me know if you have any questions. Many thanks, |
I have attached the latest Schema with all the current fields and it's type. Please let me know if you have any questions. |
@aleph-zero Your mapping is looking good so far. One small thing you can add is a mapping for ASN. It's not in an official ECS release yet. But in the next release, it will be The rest of the fields don't have a direct mapping in ECS at this time. You and @Camilia providing these details will be useful for us, when we work on adding more explicit support for firewalls and proxies in the future, so thank you both! In the meantime, all of the unmapped fields should be tracked in a custom field. |
I"d be curious how this goes, as I need to do similar exercises for other log formats. CA has documented.](https://community.broadcom.com/communities/community-home/librarydocuments/viewdocument?DocumentKey=af4d855f-307d-4c9d-8e8d-5f90b3cf007e) |
@Randy-312 Thanks for your interest. Would you please open a new issue and repost your above? Thanks! |
@webmat Here's the latest Excel with the Cloudflare mappings. I added a few questions in bold red. Can you take a look and answer? Thanks! |
Since we're going away from I've also thought about the Ray ID: since they identify an HTTP request uniquely, perhaps you could map it to I think we may have misunderstood what @Camilia said on the call, wrt I missed One very important point about |
Sorry, I missed this - why are we not using ECS Also, In this case, I think the |
@webmat Can you respond to @MikePaquette 's points about |
I understood But since all traffic for a given service is passing through Cloudflare, I suppose we can indeed use It's important that both ends of the network connection remain the "real" client IP and the origin server, however. So don't touch those, other than copying to client/server in addition to source/destination, as @MikePaquette suggested. So I'm thinking:
I haven't seen any other obvious mappings for observer, including |
@aleph-zero Feel free to close the issue when the integration comes out :-) This is good work. Eager to see that get out there! |
I would like this too, any update? |
@davidgagnegarmin I think it's available already, but not sure where :-) @aleph-zero who needs to be contacted for this? Elastic or Cloudflare? |
Appears the Cloudflare mappings are maintained by @aleph-zero here: https://github.com/cloudflare/cloudflare-elastic/tree/master/conf |
I'm currently trying to work elastic/beats#2666 to make a filebeat module for cloudflare. Will definitely use this to guide me. If anyone can provide more sample logs for testing, that would be great. Also there appear to be 3 datasets of logs; http, spectrum, firewall. If we can get all 3 that would be great and if there is a way to identify which logs are which. |
Initial Cloudflare package was added in elastic/integrations#984 |
Considering this effort complete with all the mapping done as part of creating the Cloudflare integration package. |
I'm working on mapping Cloudflare logs onto ECS. The official Cloudflare documentation on the fields and their descriptions:
My first pass is in this Excel sheet: Cloudflare-ECS.xlsx
@MikePaquette and @webmat can you help me by sanity checking what I've done so far?
The text was updated successfully, but these errors were encountered: