<?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 Re: How can I use Unix _time for inputs.conf monitor? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-use-Unix-time-for-inputs-conf-monitor/m-p/641781#M109430</link>
    <description>&lt;P&gt;This worked beautifully... I feel like an idiot, I had tried this but I put it on my search head not my indexer.... Just took another person reminding me I cant do simple things lol.&lt;/P&gt;&lt;P&gt;Thank you for your help!&lt;/P&gt;</description>
    <pubDate>Fri, 28 Apr 2023 17:03:03 GMT</pubDate>
    <dc:creator>spraus</dc:creator>
    <dc:date>2023-04-28T17:03:03Z</dc:date>
    <item>
      <title>How can I use Unix _time for inputs.conf monitor?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-use-Unix-time-for-inputs-conf-monitor/m-p/641769#M109427</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;
&lt;P&gt;Let me apologize if this has been clarified before though I cannot seem to find any documentation.&lt;/P&gt;
&lt;P&gt;I have a file that is updated ever 60 seconds with the current status of vpn users connections including data transfer bytes, username, and for the important part... Initial connection time. Unfortunately when splunk indexes the modification of the lines in this file it uses the users initial connection time as the _time field.&lt;/P&gt;
&lt;P&gt;I would like to ask if anyone knows a way using the inputs.conf file to set the _time value to the current unix timestamp.&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;Ideally I would expect something along the lines of....&lt;BR /&gt;[monitor:///var/log/openvpn*.log]&lt;BR /&gt;index=os&lt;BR /&gt;disabled = 0&lt;BR /&gt;sourcetype = openvpn&lt;BR /&gt;interval = 10&lt;BR /&gt;_time =now()&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Thank you all for any help you can provide;&lt;/P&gt;
&lt;P&gt;SPraus&lt;/P&gt;</description>
      <pubDate>Fri, 28 Apr 2023 16:05:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-use-Unix-time-for-inputs-conf-monitor/m-p/641769#M109427</guid>
      <dc:creator>spraus</dc:creator>
      <dc:date>2023-04-28T16:05:13Z</dc:date>
    </item>
    <item>
      <title>Re: How can I use Unix _time for inputs.conf monitor?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-use-Unix-time-for-inputs-conf-monitor/m-p/641779#M109429</link>
      <description>&lt;P&gt;You can tell Splunk what to use for _time in a props.conf file.&amp;nbsp; Every sourcetype should have props.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[openvpn]
# Use the current time as _time
DATETIME_CONFIG = current
SHOULD_LINEMERGE = false
# Change this as necessary to match your data
LINE_BREAKER = ([\r\n]+)&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 28 Apr 2023 16:55:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-use-Unix-time-for-inputs-conf-monitor/m-p/641779#M109429</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2023-04-28T16:55:38Z</dc:date>
    </item>
    <item>
      <title>Re: How can I use Unix _time for inputs.conf monitor?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-use-Unix-time-for-inputs-conf-monitor/m-p/641781#M109430</link>
      <description>&lt;P&gt;This worked beautifully... I feel like an idiot, I had tried this but I put it on my search head not my indexer.... Just took another person reminding me I cant do simple things lol.&lt;/P&gt;&lt;P&gt;Thank you for your help!&lt;/P&gt;</description>
      <pubDate>Fri, 28 Apr 2023 17:03:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-use-Unix-time-for-inputs-conf-monitor/m-p/641781#M109430</guid>
      <dc:creator>spraus</dc:creator>
      <dc:date>2023-04-28T17:03:03Z</dc:date>
    </item>
  </channel>
</rss>

