Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

Feat/Add sensor_name to the tagged json #39

Closed
wants to merge 2 commits into from
Closed

Feat/Add sensor_name to the tagged json #39

wants to merge 2 commits into from

Conversation

vikgmdev
Copy link

Contributor Comments

  • Add sensor_name parameter
  • Refactor the TaggedJson to get a better-formatted output:
{
    "sensor_name": "sensor_Vagrant1", 
    "event_type": "bro_dns", 
    "data": { 
         <LOG>
    }
}

Pull Request Checklist

Thank you for submitting a contribution to Apache Metron's Bro kafka writer plugin.

In order to streamline the review of the contribution we ask you follow these guidelines and ask you to double check the following:

For all changes:

  • Is there a JIRA ticket associated with this PR? If not one needs to be created at Metron Jira.
  • Does your PR title start with METRON-XXXX where XXXX is the JIRA number you are trying to resolve? Pay particular attention to the hyphen "-" character.
  • Has your PR been rebased against the latest commit within the target branch (typically master)?

For code changes:

  • Have you included steps to reproduce the behavior or problem that is being changed or addressed?
  • Have you included steps or a guide to how the change may be verified and tested manually?
  • Have you ensured that the full suite of tests and checks have been executed via:
    bro-pkg test $GITHUB_USERNAME/metron-bro-plugin-kafka --version $BRANCH
    
  • Have you written or updated unit tests and or integration tests to verify your changes?
  • If adding new dependencies to the code, are these dependencies licensed in a way that is compatible for inclusion under ASF 2.0?
  • Have you verified the basic functionality of the build by building and running locally with Apache Metron's Vagrant full-dev environment or the equivalent?

@vikgmdev vikgmdev closed this Oct 23, 2019
@vikgmdev
Copy link
Author

This PR was intended to be created on my own fork as a custom feat that I need.

@vikgmdev vikgmdev deleted the feat/add-sensor-name branch October 23, 2019 04:38
@ottobackwards
Copy link
Contributor

What might be more generic would be to define a table or something that would have names and values to add to each message, so it wasn't tied to "sensor"

@vikgmdev
Copy link
Author

What might be more generic would be to define a table or something that would have names and values to add to each message, so it wasn't tied to "sensor"

I didn't think about that but sounds very suitable for what I need. I'm going to read the Contribution Guidelines. Thanks!

@JonZeolla
Copy link
Member

Hi, checking in to see how things are coming along and if you were interested in contributing to the package 😁

@vikgmdev
Copy link
Author

Hi @JonZeolla, to be honest, I don't know too much about C++ but It's a good opportunity to learn, so take me into account for contributions, do you have a backlog or from where I can start?

@ottobackwards
Copy link
Contributor

@vikgmdev #46 has landed and will give you the functionality you are looking for I think

@vikgmdev
Copy link
Author

Hey @ottobackwards, I saw the changed this morning, It's exactly what I was looking for thanks for that!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
3 participants