Filebeat reads old files sometimes2019 Community Moderator Electiongrep a file, but show several surrounding lines?How to symlink a file in Linux?How do I change permissions for a folder and all of its subfolders and files in one step in Linux?How can I recursively find all files in current and subfolders based on wildcard matching?How do I find all files containing specific text on Linux?Filebeat on Windows 2012 R2FIlebeat-Redis-Logstash : Filebeat fast and Logstah slow, logstash threading?Filebeat message ordering during aggressive log rotationFilebeat timestamp change for application logsHow to prevent old log appending from filebeat to logstash?

Error during using callback start_page_number in lualatex

Shifting between bemols (flats) and diesis (sharps)in the key signature

Child Theme Path Being Ignored With wp_enqueue_scripts

Accepted offer letter, position changed

Are babies of evil humanoid species inherently evil?

Find longest word in a string: are any of these algorithms good?

Can you reject a postdoc offer after the PI has paid a large sum for flights/accommodation for your visit?

Coax or bifilar choke

Does the nature of the Apocalypse in The Umbrella Academy change from the first to the last episode?

Declaring and defining template, and specialising them

Conservation of Mass and Energy

An alternative proof of an application of Hahn-Banach

Intuition behind counterexample of Euler's sum of powers conjecture

What is the magic ball of every day?

They call me Inspector Morse

Is it work or heat?

Plausibility of Mushroom Buildings

Signed and unsigned numbers

How to secure an aircraft at a transient parking space?

What are some noteworthy "mic-drop" moments in math?

Bash script should only kill those instances of another script's that it has launched

In the late 1940’s to early 1950’s what technology was available that could melt a LOT of ice?

In the quantum hamiltonian, why does kinetic energy turn into an operator while potential doesn't?

Do I really need to have a scientific explanation for my premise?



Filebeat reads old files sometimes



2019 Community Moderator Electiongrep a file, but show several surrounding lines?How to symlink a file in Linux?How do I change permissions for a folder and all of its subfolders and files in one step in Linux?How can I recursively find all files in current and subfolders based on wildcard matching?How do I find all files containing specific text on Linux?Filebeat on Windows 2012 R2FIlebeat-Redis-Logstash : Filebeat fast and Logstah slow, logstash threading?Filebeat message ordering during aggressive log rotationFilebeat timestamp change for application logsHow to prevent old log appending from filebeat to logstash?










0















I have a folder with log files from 2016-present and setup filebeat with "ignore_older: 48h". All the files get rotated so that "log" is always the new one, "log.1" is the next etc.
Logs are on linux NFS partition mounted on the logstash host.



I expect filebeat to get only log files that where changed in the last 24h and ignore the older ones.



The above happens except from time to time it also gets older files in no specific order.



I ran "stat" command on one of the older file from 2018 and i see the following:



Access: 2019-03-02 03:15:32.254460960 +0000
Modify: 2018-09-06 13:12:00.331460890 +0000
Change: 2019-02-28 03:34:33.946462475 +0000


I run filebeat version 6.4.2



Is this data confusing Logstash? What is it actually looking at when checking if a file has changed. How can i stop it from taking older files.



UPDATE:



My filebeat configuration looks like this:



- type: log
enabled: true
paths:
- /path/to/my/log/file/log*
fields:
logname: "log.name"
include_lines: ["SOME_TEXT"]
ignore_older: 48h


Logs are in CSV format.










share|improve this question
























  • Please show the relevant code and state the exact error. Also see How to create a Minimal, Complete, and Verifiable example.

    – jww
    Mar 8 at 5:59















0















I have a folder with log files from 2016-present and setup filebeat with "ignore_older: 48h". All the files get rotated so that "log" is always the new one, "log.1" is the next etc.
Logs are on linux NFS partition mounted on the logstash host.



I expect filebeat to get only log files that where changed in the last 24h and ignore the older ones.



The above happens except from time to time it also gets older files in no specific order.



I ran "stat" command on one of the older file from 2018 and i see the following:



Access: 2019-03-02 03:15:32.254460960 +0000
Modify: 2018-09-06 13:12:00.331460890 +0000
Change: 2019-02-28 03:34:33.946462475 +0000


I run filebeat version 6.4.2



Is this data confusing Logstash? What is it actually looking at when checking if a file has changed. How can i stop it from taking older files.



UPDATE:



My filebeat configuration looks like this:



- type: log
enabled: true
paths:
- /path/to/my/log/file/log*
fields:
logname: "log.name"
include_lines: ["SOME_TEXT"]
ignore_older: 48h


Logs are in CSV format.










share|improve this question
























  • Please show the relevant code and state the exact error. Also see How to create a Minimal, Complete, and Verifiable example.

    – jww
    Mar 8 at 5:59













0












0








0








I have a folder with log files from 2016-present and setup filebeat with "ignore_older: 48h". All the files get rotated so that "log" is always the new one, "log.1" is the next etc.
Logs are on linux NFS partition mounted on the logstash host.



I expect filebeat to get only log files that where changed in the last 24h and ignore the older ones.



The above happens except from time to time it also gets older files in no specific order.



I ran "stat" command on one of the older file from 2018 and i see the following:



Access: 2019-03-02 03:15:32.254460960 +0000
Modify: 2018-09-06 13:12:00.331460890 +0000
Change: 2019-02-28 03:34:33.946462475 +0000


I run filebeat version 6.4.2



Is this data confusing Logstash? What is it actually looking at when checking if a file has changed. How can i stop it from taking older files.



UPDATE:



My filebeat configuration looks like this:



- type: log
enabled: true
paths:
- /path/to/my/log/file/log*
fields:
logname: "log.name"
include_lines: ["SOME_TEXT"]
ignore_older: 48h


Logs are in CSV format.










share|improve this question
















I have a folder with log files from 2016-present and setup filebeat with "ignore_older: 48h". All the files get rotated so that "log" is always the new one, "log.1" is the next etc.
Logs are on linux NFS partition mounted on the logstash host.



I expect filebeat to get only log files that where changed in the last 24h and ignore the older ones.



The above happens except from time to time it also gets older files in no specific order.



I ran "stat" command on one of the older file from 2018 and i see the following:



Access: 2019-03-02 03:15:32.254460960 +0000
Modify: 2018-09-06 13:12:00.331460890 +0000
Change: 2019-02-28 03:34:33.946462475 +0000


I run filebeat version 6.4.2



Is this data confusing Logstash? What is it actually looking at when checking if a file has changed. How can i stop it from taking older files.



UPDATE:



My filebeat configuration looks like this:



- type: log
enabled: true
paths:
- /path/to/my/log/file/log*
fields:
logname: "log.name"
include_lines: ["SOME_TEXT"]
ignore_older: 48h


Logs are in CSV format.







linux logging filebeat inode






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 8 at 13:26







Daniel

















asked Mar 6 at 15:27









DanielDaniel

234520




234520












  • Please show the relevant code and state the exact error. Also see How to create a Minimal, Complete, and Verifiable example.

    – jww
    Mar 8 at 5:59

















  • Please show the relevant code and state the exact error. Also see How to create a Minimal, Complete, and Verifiable example.

    – jww
    Mar 8 at 5:59
















Please show the relevant code and state the exact error. Also see How to create a Minimal, Complete, and Verifiable example.

– jww
Mar 8 at 5:59





Please show the relevant code and state the exact error. Also see How to create a Minimal, Complete, and Verifiable example.

– jww
Mar 8 at 5:59












0






active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55026642%2ffilebeat-reads-old-files-sometimes%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes















draft saved

draft discarded
















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55026642%2ffilebeat-reads-old-files-sometimes%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Save data to MySQL database using ExtJS and PHP [closed]2019 Community Moderator ElectionHow can I prevent SQL injection in PHP?Which MySQL data type to use for storing boolean valuesPHP: Delete an element from an arrayHow do I connect to a MySQL Database in Python?Should I use the datetime or timestamp data type in MySQL?How to get a list of MySQL user accountsHow Do You Parse and Process HTML/XML in PHP?Reference — What does this symbol mean in PHP?How does PHP 'foreach' actually work?Why shouldn't I use mysql_* functions in PHP?

Compiling GNU Global with universal-ctags support Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) Data science time! April 2019 and salary with experience The Ask Question Wizard is Live!Tags for Emacs: Relationship between etags, ebrowse, cscope, GNU Global and exuberant ctagsVim and Ctags tips and trickscscope or ctags why choose one over the other?scons and ctagsctags cannot open option file “.ctags”Adding tag scopes in universal-ctagsShould I use Universal-ctags?Universal ctags on WindowsHow do I install GNU Global with universal ctags support using Homebrew?Universal ctags with emacsHow to highlight ctags generated by Universal Ctags in Vim?

Add ONERROR event to image from jsp tldHow to add an image to a JPanel?Saving image from PHP URLHTML img scalingCheck if an image is loaded (no errors) with jQueryHow to force an <img> to take up width, even if the image is not loadedHow do I populate hidden form field with a value set in Spring ControllerStyling Raw elements Generated from JSP tagds with Jquery MobileLimit resizing of images with explicitly set width and height attributeserror TLD use in a jsp fileJsp tld files cannot be resolved