Skip to content

Conversation

@bhapas
Copy link
Contributor

@bhapas bhapas commented Apr 18, 2023

What does this PR do?

This PR fixes strict json input for different integrations that have faulty json inputs.
This also fixes the pipeline for ti_cybersixgill integration where the grok processor is appending the values that it has processed.
This PR also includes change from type:float to type:double for citrix_adc integration

Checklist

  • I have reviewed tips for building integrations and this pull request is aligned with them.
  • I have verified that all data streams collect metrics or logs.
  • I have added an entry to my package's changelog.yml file.
  • I have verified that Kibana version constraints are current according to guidelines.

Testing Checklist

Related Issues

@bhapas bhapas added the bug Something isn't working, use only for issues label Apr 18, 2023
@bhapas bhapas self-assigned this Apr 18, 2023
@elasticmachine
Copy link

elasticmachine commented Apr 18, 2023

💚 Build Succeeded

the below badges are clickable and redirect to their specific view in the CI or DOCS
Pipeline View Test View Changes Artifacts preview preview

Expand to view the summary

Build stats

  • Start Time: 2023-04-18T21:44:03.585+0000

  • Duration: 52 min 55 sec

Test stats 🧪

Test Results
Failed 0
Passed 328
Skipped 4
Total 332

🤖 GitHub comments

Expand to view the GitHub comments

To re-run your PR in the CI, just comment with:

  • /test : Re-trigger the build.

@elasticmachine
Copy link

elasticmachine commented Apr 18, 2023

🌐 Coverage report

Name Metrics % (covered/total) Diff
Packages 100.0% (37/37) 💚
Files 97.368% (37/38) 👎 -2.632
Classes 97.368% (37/38) 👎 -2.632
Methods 91.589% (490/535) 👎 -8.411
Lines 87.754% (10985/12518) 👎 -7.431
Conditionals 100.0% (0/0) 💚
@bhapas
Copy link
Contributor Author

bhapas commented Apr 18, 2023

/test

@bhapas bhapas marked this pull request as ready for review April 18, 2023 20:56
@bhapas bhapas requested review from a team as code owners April 18, 2023 20:56
@elasticmachine
Copy link

Pinging @elastic/security-external-integrations (Team:Security-External Integrations)

@bhapas
Copy link
Contributor Author

bhapas commented Apr 18, 2023

Relates #5641

Copy link
Contributor

@efd6 efd6 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Queries:

@@ -1,31 +0,0 @@
{
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What was the issue here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed the filename from .json to .log as the input file contained a bunch of json inputs to the data_stream

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So essentially clarity?

Copy link
Contributor

@efd6 efd6 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM for the SEI packages. Please wait for other teams.

@@ -1,31 +0,0 @@
{
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So essentially clarity?

@bhapas
Copy link
Contributor Author

bhapas commented Apr 18, 2023

So essestially clarity?
This also goes in hand with the strict json processor thing. So fixed the inputs to be strict jsons

@bhapas
Copy link
Contributor Author

bhapas commented Apr 19, 2023

TEST Result here

citrix_adc

The Citrix_adcintegration has a decimal truncation which is different in 8.4 and 8.7 and hence this integration failed in 8.7 CI build. If min Kibana version is moved to 8.7.1 , it works

Solution

Converting the type:float to type:double

Copy link
Contributor

@endorama endorama left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 from Obs Cloud Monitoring (aws.route53_resolver_logs test JSON comes directly from the initial PR and looks like a copy paste error)

Copy link
Contributor

@lalit-satapathy lalit-satapathy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving for ciricx_adc and ceph changes.

@bhapas bhapas merged commit fd27f43 into elastic:main Apr 19, 2023
@bhapas bhapas deleted the 8.7-issues-fixes branch April 19, 2023 11:06
@elasticmachine
Copy link

Package citrix_adc - 0.5.2 containing this change is available at https://epr.elastic.co/search?package=citrix_adc

@elasticmachine
Copy link

Package ti_cybersixgill - 1.10.1 containing this change is available at https://epr.elastic.co/search?package=ti_cybersixgill

@ebeahan
Copy link
Member

ebeahan commented Apr 21, 2023

The Citrix_adcintegration has a decimal truncation which is different in 8.4 and 8.7 and hence this integration failed in 8.7 CI build

@bhapas is this also related to a change in Elasticsearch 8.7, or something else?

@bhapas
Copy link
Contributor Author

bhapas commented Apr 21, 2023

The Citrix_adcintegration has a decimal truncation which is different in 8.4 and 8.7 and hence this integration failed in 8.7 CI build

@ebeahan Yes , a change in ES 8.7 , but not related to the Grok Processor change

agithomas pushed a commit to agithomas/integrations that referenced this pull request Apr 22, 2023
* [aws]Fix json input for pipeline tests * [ceph]fix input for pipeline tests * [citrix_adc]Fix ijson input for pipeline tests * [okta]Fix json input for pipeline tests * [citrix_adc]fix pipeline to have double type instead of float
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working, use only for issues Integration:aws AWS Integration:ceph Ceph Integration:citrix_adc Citrix ADC Integration:mimecast Mimecast (Partner supported) Integration:okta Okta Integration:ti_cybersixgill Cybersixgill

7 participants