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

1928 у кіно

Захаров Федір Захарович

Ель Греко