tazemeta
(baris)
September 28, 2022, 10:36am
1
Hello there,
i have fleet server and iis integration on my elk stack. Elastic agent on the iis server ships "../Logfiles/. .log" files to elasticsearch but it sends all log files on that folder(est. there are 2 years logs) I just want to send last 3 months logs. How can i set that?
ps: there are seperate log files for every day.
edit: i'm actually looking for ignore_older option.
stephenb
(Stephen Brown)
October 9, 2022, 4:21pm
2
Hi @tazemeta Welcome to the community!
What version of the agent are you running?
It looks to me that a pull request to fix this has been merged into main in the last couple weeks to support ignore_older
.
elastic:main
← muthu-mps:iis_ignore_older
opened 08:56AM - 14 Sep 22 UTC
- Enhancement
## What does this PR do?
Adds support to ignore logs older tha… n specified period. Details are in https://github.com/elastic/integrations/issues/3147
## Checklist
- [x] I have reviewed [tips for building integrations](https://github.com/elastic/integrations/blob/main/docs/tips_for_building_integrations.md) and this pull request is aligned with them.
- [x] I have verified that all data streams collect metrics or logs.
- [x] I have added an entry to my package's `changelog.yml` file.
<!-- Recommended
Add a checklist of things that are required to be reviewed in order to have the PR approved
-->
## How to test this PR locally
Install IIS integration
Check for new `ignore_older `option is available for logs datastream.
Verify the log collection by specifying the value to the ignore_older option.
<!-- Recommended
Explain here how this PR will be tested by the reviewer: commands, dependencies, steps, etc.
-->
- Closes #3847
<!-- Optional
Add here screenshots presenting:
- Kibana UI forms presenting configuration options exposed by the integration
- dashboards with collected metrics or logs
-->
Trying to figure out what version that is but at the worst it should be in the next version I suspect.
It would be possible to manually add this if you do standalone agent but suspect that you do not want to do that.
tazemeta
(baris)
October 13, 2022, 7:56am
3
Ohh, that's a great news for me. Right now my agents' version is 8.3.3 and they are not standalone.
I've just updated my iis integration from 1.0.0 to 1.2.0 and it shows! Thanks so much!
system
(system)
Closed
November 10, 2022, 7:56am
4
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.