All Apps and Add-ons

How to ingest Splunk data into MongoDB?

cheriemilk
Path Finder

Hi team,

we have performance log in splunk, but the storage policy is only for 3 month. so i can't see data metric trend from splunk for whole 1 year.

Is there anyway splunk can ingest data into MongoDB? so that I can use powerBI to connect to MongoDB, and do analysis in PowerBI.

Thanks,

Cherie

0 Karma
1 Solution

gcusello
SplunkTrust
SplunkTrust

Hi @cheriemilk,

you have two ways to save your data for a longer time without payng twice the Splunk License, save relevant metrics :

  • in a Summary Index,
  • in a Data Model (on MongoDB).

If you need to have a database table, without reference to Timestamp, a datamodel is prefereable.

If you need also a timestamp for your data, you can use Summary index or DataModel., it's the same.

To save data in a Summary index, you have to schedule a search, with the frequency you need, ending with the "collect" command, for more infos see at https://docs.splunk.com/Documentation/Splunk/9.0.1/Knowledge/Setupsummaryindexes.

To save data on a Data Model, see at https://docs.splunk.com/Documentation/Splunk/9.0.1/Knowledge/Aboutdatamodels .

Ciao.

Giuseppe

View solution in original post

cheriemilk
Path Finder

Hi @gcusello understood. thank you

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @cheriemilk,

good for you, see next time!

Ciao and happy splunking

Giuseppe

P.S.: Karma Points are appreciated 😉

0 Karma

cheriemilk
Path Finder

HI @gcusello ,

Thank you for the suggestion. I have one question regarding Summary Index.

Our company's data retention policy is only 3 month.  the data that retention is greater than 3 month will be cleared in splunk. Then the data in new summary index will be cleared as well. Then I still can't save the data for a longer time.

Thanks,

Cherie

 

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @cheriemilk,

if you set-up a longer retention for the summary index, the data (in the Summary Index) will be retained longer than the original index.

In other words, if you copy the relevant data (eventually all the data) in a different index with a longer retention, the data in this index will be maintained for the summary index retention time, even if they will be deleted from the original index.

Ciao.

Giuseppe

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @cheriemilk,

you have two ways to save your data for a longer time without payng twice the Splunk License, save relevant metrics :

  • in a Summary Index,
  • in a Data Model (on MongoDB).

If you need to have a database table, without reference to Timestamp, a datamodel is prefereable.

If you need also a timestamp for your data, you can use Summary index or DataModel., it's the same.

To save data in a Summary index, you have to schedule a search, with the frequency you need, ending with the "collect" command, for more infos see at https://docs.splunk.com/Documentation/Splunk/9.0.1/Knowledge/Setupsummaryindexes.

To save data on a Data Model, see at https://docs.splunk.com/Documentation/Splunk/9.0.1/Knowledge/Aboutdatamodels .

Ciao.

Giuseppe

Get Updates on the Splunk Community!

Strengthen Your Future: A Look Back at Splunk 10 Innovations and .conf25 Highlights!

The Big One: Splunk 10 is Here!  The moment many of you have been waiting for has arrived! We are thrilled to ...

Now Offering the AI Assistant Usage Dashboard in Cloud Monitoring Console

Today, we’re excited to announce the release of a brand new AI assistant usage dashboard in Cloud Monitoring ...

Stay Connected: Your Guide to October Tech Talks, Office Hours, and Webinars!

What are Community Office Hours? Community Office Hours is an interactive 60-minute Zoom series where ...