does logstash support storing different log sources in different indices? specifically i'd like to be able to keep different sources for different periods of time, i assume logstash ages out logs by deleting indices, so i'd need different logs in different indices, is this all supported?
brotatochip joined the channel
matejz
catphish: sure
catphish
hurrah
brotatochip has quit
i tried graylog first, i liked it, but it doesn't support this partitioning, everything has to go into the same index and must be aged together
matejz
catphish: logstash doesn’t delete indices, it only sends the logs to elasticsearch,
catphish: in the output filter, you can do some if else and route the logs where you want
flowstate joined the channel
I’m routing my logs based on type. Each type goes to different index
flowstate has quit
nat2610 joined the channel
flowstate joined the channel
Something along those lines:
elasticsearch {
hosts => ["ES_HOST:9200"]
index => "logs-%{type}-%{+YYYY.MM}"
}
this saves each type to its own index
but be aware, in Kibana, you can only operate on one index at once… at least for now
catphish
matejz: that sounds good, does one have to use a separate tool to delete the indices? i think i've seen something to handle this
also, i'm pretty sure kibana can operate on wildcards, i'm sure i've done it
Title: GitHub - elastic/curator: Curator: Tending your Elasticsearch indices (at github.com)
catphish
that makes sense, and yeah curator is the tool i was thinking of :)
matejz
it has a great command line and it’s just nice to use
catphish
its a shame this isn't handled automagically by logstash, but i'm sure i can configure something
al-damiri joined the channel
nat2610 has quit
matejz
catphish: logstash can’t delete indices by itself
r4z
** r4z waits answers **
catphish
matejz: that's a shame, but i'm sure this is a common requirement so i'm sure curator can handle it without too much hassle
matejz
catphish: yea, curator can handle it no problem
catphish
tremendous
matejz
catphish: but it’s not a part of logstash
catphish
that makes sense
atlas__ joined the channel
matejz
its a separate script, but it does the job:)
I just run it in crontab on one of the ES node
hugh_jass has quit
hugh_jass joined the channel
pawnbox has quit
gentunian joined the channel
pawnbox joined the channel
mungustas has quit
nat2610 joined the channel
iamchrisf joined the channel
gentunian has quit
gentunian joined the channel
flargnarf has quit
koendc joined the channel
koendc has quit
koendc joined the channel
nat2610 joined the channel
thansen joined the channel
etetz has quit
etetz joined the channel
etetz has quit
etetz joined the channel
s0l__ joined the channel
sol_ has quit
flowstate has quit
lulimay joined the channel
s0l__ is now known as sol_
lulimay
How do you make a line break in a conf file? I have a query that is 219 chars wide. Or should it just be in a separate file (it's a SQL query)? It's not a particularly complex query, just selecting several fields.
nat2610 has quit
Seems like a simple question but I can't seem to get google to answer it for me.
hugh_jass has quit
flowstat_ joined the channel
hugh_jass joined the channel
brotatochip joined the channel
atlas__ has quit
flowstat_ has quit
koendc has quit
matejz has quit
flargnarf joined the channel
nat2610 joined the channel
ronp_usa1 joined the channel
ronp_usa1
hello is the elasticsearch inplugin suitable to "stream" contents of one ES server to another via logstash?
input plugin*
nat2610 has quit
Xylakant
depends on what you mean by "stream"
ronp_usa1
continious updates from several outlying ES clusters into a centralized ES cluster
Xylakant
then not.
the input runs a single query and reads the query result to logstash
it does not re-run the query.
ryancrowq has quit
ronp_usa1
so you could cron periodic updates and grab the last 5 mins worth? or so?
I want to do a basic thing of creating a new field based on a field called 'source'. Doesn't seem to be working.
nat2610 joined the channel
ronp_usa1 has quit
brotatochip has quit
koendc joined the channel
pafmaf has quit
brotatochip joined the channel
antgel joined the channel
nat2610 joined the channel
hugh_jass has quit
hugh_jass joined the channel
nat2610 has quit
koendc has quit
rem5_ joined the channel
rem5 has quit
I got my mutate command to create a new field called file which is equal to %{source} (filebeat input). But some records have content for 'file' and some don't. ?