<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Why is my regular expression in inputs.conf not working to monitor rotating log files? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-my-regular-expression-in-inputs-conf-not-working-to/m-p/215116#M42348</link>
    <description>&lt;P&gt;HI ,&lt;BR /&gt;
I have below log files in the /repo/logs directory. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;http_access_management_console_2016-04-25.log  
http_access_management_console_2016-04-26.log
http_access_management_console_2016-04-27.log
http_access_management_console_2016-04-28.log
http_access_management_console_2016-04-29.log
carbon.log
carbon.log.2016-04-27
carbon.log.2016-04-28
carbon.log.2016-04-29
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;http_access_management logs were recorded with dates for each day, where as carbon.log is today's log, and old dated logs are older logs.&lt;/P&gt;

&lt;P&gt;to monitor  http_access logs i am using the below command &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;./splunk add monitor /repository/logs/http_acce*.log -index hello -sourcetype esb-http-access-logs
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and its throwing me the error &lt;BR /&gt;
Parameters must be in the form &lt;CODE&gt;-parameter value&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;and for carbon logs to monitor i am using the command&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;./splunk add monitor /repository/logs/wso2carbon.* -index hello -sourcetype esb-carbon-logs
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and its also throwing me same issue.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Parameters must be in the form '-parameter value'
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Was trying couple of different formats, nothing was working. Can someone help me on this?&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 11:10:29 GMT</pubDate>
    <dc:creator>murthychitturi</dc:creator>
    <dc:date>2020-09-29T11:10:29Z</dc:date>
    <item>
      <title>Why is my regular expression in inputs.conf not working to monitor rotating log files?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-my-regular-expression-in-inputs-conf-not-working-to/m-p/215116#M42348</link>
      <description>&lt;P&gt;HI ,&lt;BR /&gt;
I have below log files in the /repo/logs directory. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;http_access_management_console_2016-04-25.log  
http_access_management_console_2016-04-26.log
http_access_management_console_2016-04-27.log
http_access_management_console_2016-04-28.log
http_access_management_console_2016-04-29.log
carbon.log
carbon.log.2016-04-27
carbon.log.2016-04-28
carbon.log.2016-04-29
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;http_access_management logs were recorded with dates for each day, where as carbon.log is today's log, and old dated logs are older logs.&lt;/P&gt;

&lt;P&gt;to monitor  http_access logs i am using the below command &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;./splunk add monitor /repository/logs/http_acce*.log -index hello -sourcetype esb-http-access-logs
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and its throwing me the error &lt;BR /&gt;
Parameters must be in the form &lt;CODE&gt;-parameter value&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;and for carbon logs to monitor i am using the command&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;./splunk add monitor /repository/logs/wso2carbon.* -index hello -sourcetype esb-carbon-logs
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and its also throwing me same issue.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Parameters must be in the form '-parameter value'
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Was trying couple of different formats, nothing was working. Can someone help me on this?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 11:10:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-my-regular-expression-in-inputs-conf-not-working-to/m-p/215116#M42348</guid>
      <dc:creator>murthychitturi</dc:creator>
      <dc:date>2020-09-29T11:10:29Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my regular expression in inputs.conf not working to monitor rotating log files?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-my-regular-expression-in-inputs-conf-not-working-to/m-p/215117#M42349</link>
      <description>&lt;P&gt;Did you try to quote the path like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; ./splunk add monitor '/repository/logs/http_acce*.log' -index hello -sourcetype esc-http-access-logs
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
      <pubDate>Tue, 27 Sep 2016 22:27:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-my-regular-expression-in-inputs-conf-not-working-to/m-p/215117#M42349</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2016-09-27T22:27:59Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my regular expression in inputs.conf not working to monitor rotating log files?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-my-regular-expression-in-inputs-conf-not-working-to/m-p/215118#M42350</link>
      <description>&lt;P&gt;Thanks that worked for me. What is the command that will be used for me to monitor only the files for past 3 days and ignore the file before 3days. I used ignoreOlderThan = 3d , but still i can see the previous files in my splunk server.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Sep 2016 18:48:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-my-regular-expression-in-inputs-conf-not-working-to/m-p/215118#M42350</guid>
      <dc:creator>murthychitturi</dc:creator>
      <dc:date>2016-09-28T18:48:29Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my regular expression in inputs.conf not working to monitor rotating log files?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-my-regular-expression-in-inputs-conf-not-working-to/m-p/215119#M42351</link>
      <description>&lt;P&gt;Well, once indexed by splunk you will find these file until they age out of the index. The option &lt;CODE&gt;ignoreOlderThan&lt;/CODE&gt; will work if you disable the monitor for 4 days and enable it again. After that you will only have the new data from the last three days, based on the modification date of the log file.&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
      <pubDate>Wed, 28 Sep 2016 23:54:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-my-regular-expression-in-inputs-conf-not-working-to/m-p/215119#M42351</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2016-09-28T23:54:16Z</dc:date>
    </item>
  </channel>
</rss>

