Getting Data In

Is it possible to have splunk notified to re-run indexing on a file , based on a Git commit ? ( similar to how jenkins build gets triggered based on a new commit to Github)

suser2019
Explorer

Is it possible to have splunk notified to re-run indexing on a file , based on a Git commit ? ( similar to how jenkins build gets triggered based on a new commit to Github)

have a file that needs to be updated constantly with new information. I am trying to automate a way that splunk reads this file everytime it is pushed to github repository as a commit.

0 Karma
1 Solution

richgalloway
SplunkTrust
SplunkTrust

Consider having commits trigger a REST oneshot command to index the committed file. See https://docs.splunk.com/Documentation/Splunk/7.3.0/RESTREF/RESTinput#data.2Finputs.2Foneshot.2F.7Bna... for details.

---
If this reply helps you, Karma would be appreciated.

View solution in original post

0 Karma

richgalloway
SplunkTrust
SplunkTrust

Consider having commits trigger a REST oneshot command to index the committed file. See https://docs.splunk.com/Documentation/Splunk/7.3.0/RESTREF/RESTinput#data.2Finputs.2Foneshot.2F.7Bna... for details.

---
If this reply helps you, Karma would be appreciated.
0 Karma

suser2019
Explorer

Thank you for your suggestion. I am new to this. How do I have commits to the github repo trigger a REST oneshot command ? via serverside git hooks ?

0 Karma

richgalloway
SplunkTrust
SplunkTrust

I don't know the specifics.

---
If this reply helps you, Karma would be appreciated.
0 Karma
Get Updates on the Splunk Community!

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

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...