Splunk Search

Splunk query

kajalchopade071
Path Finder

I have One primary index which contains 30 days logs, but i want from one year for this purpose i created One more splunk summary index where i can copy One month Data (Jan) ,after one month again one month data (Feb) likewise... So how can i copy one month data from One index to another 

0 Karma
1 Solution

gcusello
SplunkTrust
SplunkTrust

Hi @kajalchopade071,

the correct use of summary indexes is to contain elaborated data, so you should create a search that already summarize informations (e.g. stats) or a search that contains only the fields you really needs.

If you want all the events of the original index, the best approach is to modify the retention in the primary index to one year.

Anyway, to put data in a summary index, you have to add, at the end of your scheduled search the following command:

| collect index=your_summary_index

as you can see at https://docs.splunk.com/Documentation/Splunk/8.2.4/SearchReference/Collect .

Ciao.

Giuseppe

View solution in original post

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @kajalchopade071,

the correct use of summary indexes is to contain elaborated data, so you should create a search that already summarize informations (e.g. stats) or a search that contains only the fields you really needs.

If you want all the events of the original index, the best approach is to modify the retention in the primary index to one year.

Anyway, to put data in a summary index, you have to add, at the end of your scheduled search the following command:

| collect index=your_summary_index

as you can see at https://docs.splunk.com/Documentation/Splunk/8.2.4/SearchReference/Collect .

Ciao.

Giuseppe

0 Karma

kajalchopade071
Path Finder

Thank you 

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @kajalchopade071,

good for you, see next time!

Ciao and happy splunking.

Giuseppe

P.S.: Karma Points are appreciated 😉

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Take Action Automatically on Splunk Alerts with Red Hat Ansible Automation Platform

 Are you ready to revolutionize your IT operations? As digital transformation accelerates, the demand for ...

Calling All Security Pros: Ready to Race Through Boston?

Hey Splunkers, .conf25 is heading to Boston and we’re kicking things off with something bold, competitive, and ...

Beyond Detection: How Splunk and Cisco Integrated Security Platforms Transform ...

Financial services organizations face an impossible equation: maintain 99.9% uptime for mission-critical ...