cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
jamesmac
Level 10
Report Inappropriate Content
Message 1 of 3

Scripting a bulk change to data sources

Jump to solution

Folks,

Customer is in the process of moving off the SIEM. They have 100+ Cisco Meraki data sources, which they have stopped sending data to.

 

Rather than open each source, untick parsing and logging to ELM, then saving the change there *ought* to be a way of running a command-line script, which my best pseudo-code renders like this:

while device type =Meraki

do;

"parsing"= off; "log to ELM"= off

 

Can it be done? 

 

Regards, James

1 Solution

Accepted Solutions
lratcliffe
McAfee Employee
McAfee Employee
Report Inappropriate Content
Message 3 of 3

Re: Scripting a bulk change to data sources

Jump to solution

I recommend making this change through the Datasource Export and Import functionality.   Export your datasources, filter the csv you receive to identify only the ones you want to make changes to, add "edit" as the first column of those datasources and adjust the parsing and elm logging entries as desired to make the changes.

Alternatively, this can be completed using the API - dsEditDataSource would handle this quite well.

Finally, if you need to make the change from the back-end of the SIEM you would need to update the thirdpartyconfig table on the ESM database (not just the thirdparty.conf file - this file is written based on the content of the table).

Was my reply helpful?

If this information was helpful in any way or answered your question, will you please select Accept as Solution in my reply and together we can help other members?

View solution in original post

2 Replies
vsenthil
McAfee Employee
McAfee Employee
Report Inappropriate Content
Message 2 of 3

Re: Scripting a bulk change to data sources

Jump to solution

Yes. It's possible. You can update the parameter "elm_logging=no" and "parsing=no" for the "type_orig=549" (type_orig value remains same for all Meraki datasources) in /etc/NitroGuard/thirdparty.conf on receiver (It is strongly recommended to take a backup of thirdparty.conf before you make changes on it. You can copy this file to any other location before making any changes).

Below is an example of Cisco Meraki datasource entry in thirdparty.conf file

[CiscoMeraki]
id=152
ipsid=144119588588617728
created=1627457641
# Meraki
type=49190
type_orig=549
disabled=no
ip_address=10.20.30.5
collector=syslog
parser=asp
protocol=gsyslog
elm_logging=no
els_logging=no
parsing=yes
autolearn=no
mask=0
require_tls=F
syslog_port=514
tz_id=Australia/Perth
device_status_traps=no
override=type

Once changed the elm_logging from thirdparty.conf file, write out the settings from GUI (Receiver properties -> Datasources-> Write) and roll out the policy.

Let me know if you have any queries on the same.

lratcliffe
McAfee Employee
McAfee Employee
Report Inappropriate Content
Message 3 of 3

Re: Scripting a bulk change to data sources

Jump to solution

I recommend making this change through the Datasource Export and Import functionality.   Export your datasources, filter the csv you receive to identify only the ones you want to make changes to, add "edit" as the first column of those datasources and adjust the parsing and elm logging entries as desired to make the changes.

Alternatively, this can be completed using the API - dsEditDataSource would handle this quite well.

Finally, if you need to make the change from the back-end of the SIEM you would need to update the thirdpartyconfig table on the ESM database (not just the thirdparty.conf file - this file is written based on the content of the table).

Was my reply helpful?

If this information was helpful in any way or answered your question, will you please select Accept as Solution in my reply and together we can help other members?

View solution in original post

You Deserve an Award
Don't forget, when your helpful posts earn a kudos or get accepted as a solution you can unlock perks and badges. Those aren't the only badges, either. How many can you collect? Click here to learn more.

Community Help Hub

    New to the forums or need help finding your way around the forums? There's a whole hub of community resources to help you.

  • Find Forum FAQs
  • Learn How to Earn Badges
  • Ask for Help
Go to Community Help

Join the Community

    Thousands of customers use the McAfee Community for peer-to-peer and expert product support. Enjoy these benefits with a free membership:

  • Get helpful solutions from McAfee experts.
  • Stay connected to product conversations that matter to you.
  • Participate in product groups led by McAfee employees.
Join the Community
Join the Community